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

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

Issue 8353022: [web-ui settings] Fixes and improvements for settings page searching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebase for commit queue Created 9 years, 2 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 | « chrome/browser/resources/options/search_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/extension_settings_handler.cc
===================================================================
--- chrome/browser/ui/webui/options/extension_settings_handler.cc (revision 107010)
+++ chrome/browser/ui/webui/options/extension_settings_handler.cc (working copy)
@@ -218,9 +218,6 @@
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_WARNING_CHANGED,
content::Source<Profile>(profile));
registrar_.Add(this,
- content::NOTIFICATION_NAV_ENTRY_COMMITTED,
- content::NotificationService::AllBrowserContextsAndSources());
- registrar_.Add(this,
content::NOTIFICATION_RENDER_VIEW_HOST_CREATED,
content::NotificationService::AllBrowserContextsAndSources());
registrar_.Add(this,
@@ -505,10 +502,8 @@
DCHECK(localized_strings);
RegisterTitle(localized_strings, "extensionSettings",
- IDS_OPTIONS_GENERAL_TAB_LABEL);
+ IDS_MANAGE_EXTENSIONS_SETTING_WINDOWS_TITLE);
- localized_strings->SetString("extensionSettingsTitle",
- l10n_util::GetStringUTF16(IDS_MANAGE_EXTENSIONS_SETTING_WINDOWS_TITLE));
localized_strings->SetString("extensionSettingsVisitWebsite",
l10n_util::GetStringUTF16(IDS_EXTENSIONS_VISIT_WEBSITE));
@@ -605,12 +600,7 @@
// For instance, EXTENSION_LOADED & EXTENSION_PROCESS_CREATED because
// we don't know about the views for an extension at EXTENSION_LOADED, but
// if we only listen to EXTENSION_PROCESS_CREATED, we'll miss extensions
- // that don't have a process at startup. Similarly, NAV_ENTRY_COMMITTED &
- // RENDER_VIEW_HOST_CREATED because we want to handle both
- // the case of navigating from a non-extension page to an extension page in
- // a TabContents (which will generate NAV_ENTRY_COMMITTED) as well as
- // extension content being shown in popups and balloons (which will generate
- // RENDER_VIEW_HOST_CREATED but no NAV_ENTRY_COMMITTED).
+ // that don't have a process at startup.
//
// Doing it this way gets everything but causes the page to be rendered
// more than we need. It doesn't seem to result in any noticeable flicker.
@@ -635,14 +625,6 @@
return;
MaybeUpdateAfterNotification();
break;
- case content::NOTIFICATION_NAV_ENTRY_COMMITTED:
- source_profile = Profile::FromBrowserContext(
- content::Source<NavigationController>(
- source).ptr()->browser_context());
- if (!profile->IsSameProfile(source_profile))
- return;
- MaybeUpdateAfterNotification();
- break;
case chrome::NOTIFICATION_EXTENSION_LOADED:
case chrome::NOTIFICATION_EXTENSION_PROCESS_CREATED:
case chrome::NOTIFICATION_EXTENSION_UNLOADED:
« no previous file with comments | « chrome/browser/resources/options/search_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698