summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugins
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-15 06:45:01 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-15 06:45:01 +0000
commitd31c30b34eba1e2e366cdb699e8f6ab8cfc479a0 (patch)
treef361256e72e177cf42803cd933b4754e761599b6 /chrome/browser/plugins
parent88ebb3d0b7a565890bb73b9537fe9d9c39fd8c3c (diff)
downloadchromium_src-d31c30b34eba1e2e366cdb699e8f6ab8cfc479a0.zip
chromium_src-d31c30b34eba1e2e366cdb699e8f6ab8cfc479a0.tar.gz
chromium_src-d31c30b34eba1e2e366cdb699e8f6ab8cfc479a0.tar.bz2
Fix WeakPtrFactory member order in chrome/browser/plugins/.
BUG=303818 Review URL: https://codereview.chromium.org/61233003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235296 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugins')
-rw-r--r--chrome/browser/plugins/plugin_observer.h4
-rw-r--r--chrome/browser/plugins/plugin_status_pref_setter.cc6
-rw-r--r--chrome/browser/plugins/plugin_status_pref_setter.h3
3 files changed, 7 insertions, 6 deletions
diff --git a/chrome/browser/plugins/plugin_observer.h b/chrome/browser/plugins/plugin_observer.h
index 9e77213..3bddc94 100644
--- a/chrome/browser/plugins/plugin_observer.h
+++ b/chrome/browser/plugins/plugin_observer.h
@@ -65,13 +65,13 @@ class PluginObserver : public content::WebContentsObserver,
void OnCouldNotLoadPlugin(const base::FilePath& plugin_path);
void OnNPAPINotSupported(const std::string& identifier);
- base::WeakPtrFactory<PluginObserver> weak_ptr_factory_;
-
#if defined(ENABLE_PLUGIN_INSTALLATION)
// Stores all PluginPlaceholderHosts, keyed by their routing ID.
std::map<int, PluginPlaceholderHost*> plugin_placeholders_;
#endif
+ base::WeakPtrFactory<PluginObserver> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(PluginObserver);
};
diff --git a/chrome/browser/plugins/plugin_status_pref_setter.cc b/chrome/browser/plugins/plugin_status_pref_setter.cc
index f2b4e7f..990084f 100644
--- a/chrome/browser/plugins/plugin_status_pref_setter.cc
+++ b/chrome/browser/plugins/plugin_status_pref_setter.cc
@@ -63,9 +63,9 @@ void PluginStatusPrefSetter::GotPlugins(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Set the values on the PrefService instead of through the PrefMembers to
// notify observers if they changed.
- profile_->GetPrefs()
- ->SetBoolean(clear_plugin_lso_data_enabled_.GetPrefName().c_str(),
- PluginDataRemoverHelper::IsSupported(plugin_prefs.get()));
+ profile_->GetPrefs()->SetBoolean(
+ clear_plugin_lso_data_enabled_.GetPrefName().c_str(),
+ PluginDataRemoverHelper::IsSupported(plugin_prefs.get()));
profile_->GetPrefs()->SetBoolean(
pepper_flash_settings_enabled_.GetPrefName().c_str(),
PepperFlashSettingsManager::IsPepperFlashInUse(plugin_prefs.get(), NULL));
diff --git a/chrome/browser/plugins/plugin_status_pref_setter.h b/chrome/browser/plugins/plugin_status_pref_setter.h
index e77c94a..2899cd2 100644
--- a/chrome/browser/plugins/plugin_status_pref_setter.h
+++ b/chrome/browser/plugins/plugin_status_pref_setter.h
@@ -58,13 +58,14 @@ class PluginStatusPrefSetter : public content::NotificationObserver {
content::NotificationRegistrar registrar_;
// Weak pointer.
Profile* profile_;
- base::WeakPtrFactory<PluginStatusPrefSetter> factory_;
// Whether clearing LSO data is supported.
BooleanPrefMember clear_plugin_lso_data_enabled_;
// Whether we should show Pepper Flash-specific settings.
BooleanPrefMember pepper_flash_settings_enabled_;
+ base::WeakPtrFactory<PluginStatusPrefSetter> factory_;
+
DISALLOW_COPY_AND_ASSIGN(PluginStatusPrefSetter);
};