Skip to content

Instantly share code, notes, and snippets.

View balazs's full-sized avatar

Balazs Kelemen balazs

  • Samsung Research America
  • Boston
View GitHub Profile
diff --git a/chrome/browser/task_manager/child_process_resource_provider.cc b/chrome/browser/task_manager/child_process_resource_provider.cc
index b4da9ef..ac3b1e0 100644
--- a/chrome/browser/task_manager/child_process_resource_provider.cc
+++ b/chrome/browser/task_manager/child_process_resource_provider.cc
@@ -8,6 +8,7 @@
#include "base/i18n/rtl.h"
#include "base/strings/string16.h"
+#include "chrome/browser/process_resource_usage.h"
#include "chrome/browser/task_manager/resource_provider.h"
o = {}
Object {}
var struct = { content: [1,2,3] }
undefined
Object.defineProperty(o, 'ref', {value: struct, writable: false})
Object {ref: Object}
var s2 = o.ref
undefined
s2
Object {content: Array[3]}content: Array[3]__proto__: Object
layoutish/0000775000175000017500000000000012536662674012434 5ustar balazsbalazslayoutish/xhr-during-transition.html0000664000175000017500000000237612536665343017605 0ustar balazsbalazs
@balazs
balazs / -
Created January 30, 2015 05:11
diff --git a/components/gwclient_driver/push_messaging_registration_info_helper.cc b/components/gwclient_driver/push_messaging_registration_info_helper.cc
new file mode 100644
index 0000000..63dbf3d
--- /dev/null
+++ b/components/gwclient_driver/push_messaging_registration_info_helper.cc
@@ -0,0 +1,91 @@
+// TODO: licence
+
+#include "components/gwclient_driver/push_messaging_registration_info_helper.h"
+
From e13d1e16c160cf369c608209a032bcfc683dac29 Mon Sep 17 00:00:00 2001
From: Balazs Kelemen <b.kelemen@samsung.com>
Date: Thu, 29 Jan 2015 15:58:54 -0500
Subject: [PATCH] Cleanup mapping in GWCliendDriver
We should watch for consequent registrations before callback dispatched.
Also we should remove mapping once we are done with it.
Straighten the lookup by CHECK's and use STL iterator api's to avoid
double lookups.
{
"gcm_sender_id": "766134470826"
}
{
"gcm_sender_id": "766134470826"
}
<!DOCTYPE html>
<!--
Copyright 2014 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
diff --git a/Source/wtf/Dummy.cpp b/Source/wtf/Dummy.cpp
new file mode 100644
index 0000000..55d5f66
--- /dev/null
+++ b/Source/wtf/Dummy.cpp
@@ -0,0 +1,48 @@
+#include "config.h"
+
+#include "wtf/RefPtr.h"
+#include "wtf/HashMap.h"
diff --git a/Source/wtf/Dummy.cpp b/Source/wtf/Dummy.cpp
new file mode 100644
index 0000000..81eb36d
--- /dev/null
+++ b/Source/wtf/Dummy.cpp
@@ -0,0 +1,45 @@
+#include "wtf/RefPtr.h"
+#include "wtf/HashMap.h"
+#include "wtf/text/String.h"
+