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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 871113003: Plugin Power Saver: Fix Flash JS usage UMA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_instance_impl.h
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.h b/content/renderer/pepper/pepper_plugin_instance_impl.h
index 1f21842a6d66d3153e40e7fd2ee1610ab1d9e87c..3a0a69aeb3089905e461922c7d7883ceb8712095 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.h
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.h
@@ -719,10 +719,10 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
bool layer_is_hardware_;
// Plugin URL.
- GURL plugin_url_;
+ const GURL plugin_url_;
// Used to track Flash-specific metrics.
- bool is_flash_plugin_;
+ const bool is_flash_plugin_;
// Set to true the first time the plugin is clicked. Used to collect metrics.
bool has_been_clicked_;
@@ -924,6 +924,8 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
bool is_tracking_latency_;
+ bool initialized_;
+
// We use a weak ptr factory for scheduling DidChangeView events so that we
// can tell whether updates are pending and consolidate them. When there's
// already a weak ptr pending (HasWeakPtrs is true), code should update the
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698