Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: content/worker/websharedworkerclient_proxy.cc

Issue 183153002: Make shared worker aware kEnableSharedWorkerMemoryInfo switch (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/worker/websharedworkerclient_proxy.cc
diff --git a/content/worker/websharedworkerclient_proxy.cc b/content/worker/websharedworkerclient_proxy.cc
index 486479a30d3084e4a4c66787333e94cb7560dd74..466e23731a581f6e4031bcfa1a6053daf7a3606d 100644
--- a/content/worker/websharedworkerclient_proxy.cc
+++ b/content/worker/websharedworkerclient_proxy.cc
@@ -82,6 +82,13 @@ void WebSharedWorkerClientProxy::selectAppCacheID(long long app_cache_id) {
}
}
+bool WebSharedWorkerClientProxy::enableMemoryInfo() {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableMemoryInfo))
+ return true;
+
+ return false;
+}
kinuko 2014/02/28 05:26:12 As I commented on the other thread, can we avoid a
+
blink::WebNotificationPresenter*
WebSharedWorkerClientProxy::notificationPresenter() {
// TODO(johnnyg): Notifications are not yet hooked up to workers.
« content/public/common/content_switches.cc ('K') | « content/worker/websharedworkerclient_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698