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

Unified Diff: components/plugins/renderer/loadable_plugin_placeholder.h

Issue 2211753002: Plugin Power Saver Tiny: Fix Plugin.PowerSaver.PeripheralHeuristic UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge. and change to enum Created 4 years, 4 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: components/plugins/renderer/loadable_plugin_placeholder.h
diff --git a/components/plugins/renderer/loadable_plugin_placeholder.h b/components/plugins/renderer/loadable_plugin_placeholder.h
index 0d7d8d961ffbdff44f693f174361f3eb3fc4106a..ea52ae9e5d68ab9b1e4418d250b90edc6828163d 100644
--- a/components/plugins/renderer/loadable_plugin_placeholder.h
+++ b/components/plugins/renderer/loadable_plugin_placeholder.h
@@ -82,6 +82,9 @@ class LoadablePluginPlaceholder : public PluginPlaceholderBase {
void DidFinishLoadingCallback();
void DidFinishIconRepositionForTestingCallback();
+ // True if the power saver heuristic has already been run on this content.
+ bool heuristic_run_before_;
+
private:
// WebViewPlugin::Delegate methods:
void PluginDestroyed() override;
@@ -135,9 +138,6 @@ class LoadablePluginPlaceholder : public PluginPlaceholderBase {
gfx::Rect unobscured_rect_;
- // True if the power saver heuristic has already been run on this content.
- bool heuristic_run_before_;
-
base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder);
« no previous file with comments | « chrome/renderer/plugins/power_saver_info.cc ('k') | components/plugins/renderer/loadable_plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698