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

Unified Diff: content/browser/plugin_service_impl.cc

Issue 708933002: Plugin service: Use the correct registry key for each watch operation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_service_impl.cc
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc
index d19f6861c162b2a289d2ca1ccf85a13f3d21bf66..79d25d4bc123acdfdcb6bace39e33e9cb0392f0e 100644
--- a/content/browser/plugin_service_impl.cc
+++ b/content/browser/plugin_service_impl.cc
@@ -201,7 +201,7 @@ void PluginServiceImpl::StartWatchingPlugins() {
KEY_NOTIFY) == ERROR_SUCCESS) {
base::win::RegKey::ChangeCallback callback =
base::Bind(&PluginServiceImpl::OnKeyChanged, base::Unretained(this),
- base::Unretained(&hkcu_key_));
+ base::Unretained(&hklm_key_));
hklm_key_.StartWatching(callback);
}
#endif
@@ -631,7 +631,7 @@ void PluginServiceImpl::GetPluginsOnIOThread(
void PluginServiceImpl::OnKeyChanged(base::win::RegKey* key) {
key->StartWatching(base::Bind(&PluginServiceImpl::OnKeyChanged,
base::Unretained(this),
- base::Unretained(&hkcu_key_)));
+ base::Unretained(key)));
PluginList::Singleton()->RefreshPlugins();
PurgePluginListCache(NULL, false);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698