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

Unified Diff: chrome/browser/ui/webui/extensions/extension_settings_handler.cc

Issue 1536213002: [Extension UI] Observing WebContentsObserver from extension_settings_handler.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: chrome/browser/ui/webui/extensions/extension_settings_handler.cc
diff --git a/chrome/browser/ui/webui/extensions/extension_settings_handler.cc b/chrome/browser/ui/webui/extensions/extension_settings_handler.cc
index d6c017489136ee3732c56cc60240ee38454a62fe..5fdbfd24c8b7c04b2f49f4285b87a88698aa1cac 100644
--- a/chrome/browser/ui/webui/extensions/extension_settings_handler.cc
+++ b/chrome/browser/ui/webui/extensions/extension_settings_handler.cc
@@ -285,6 +285,8 @@ void ExtensionSettingsHandler::RegisterMessages() {
// TODO(devlin): Take this out when everyone's been updated.
Profile::FromWebUI(web_ui())->GetPrefs()->ClearPref(
prefs::kExtensionsUIDismissedADTPromo);
+
+ content::WebContentsObserver::Observe(web_ui()->GetWebContents());
}
void ExtensionSettingsHandler::ReloadUnpackedExtensions() {
« 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