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

Side by Side Diff: chrome/browser/ui/webui/options/extension_settings_handler.cc

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright bumps Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/extension_settings_handler.h" 5 #include "chrome/browser/ui/webui/options/extension_settings_handler.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 l10n_util::GetStringUTF16(IDS_EXTENSIONS_SHOW_DETAILS)); 584 l10n_util::GetStringUTF16(IDS_EXTENSIONS_SHOW_DETAILS));
585 localized_strings->SetString("extensionSettingsHideDetails", 585 localized_strings->SetString("extensionSettingsHideDetails",
586 l10n_util::GetStringUTF16(IDS_EXTENSIONS_HIDE_DETAILS)); 586 l10n_util::GetStringUTF16(IDS_EXTENSIONS_HIDE_DETAILS));
587 587
588 // TODO(estade): comb through the above strings to find ones no longer used in 588 // TODO(estade): comb through the above strings to find ones no longer used in
589 // uber extensions. 589 // uber extensions.
590 localized_strings->SetString("extensionUninstall", 590 localized_strings->SetString("extensionUninstall",
591 l10n_util::GetStringUTF16(IDS_EXTENSIONS_UNINSTALL)); 591 l10n_util::GetStringUTF16(IDS_EXTENSIONS_UNINSTALL));
592 } 592 }
593 593
594 void ExtensionSettingsHandler::Initialize() {
595 }
596
597 void ExtensionSettingsHandler::Observe( 594 void ExtensionSettingsHandler::Observe(
598 int type, 595 int type,
599 const content::NotificationSource& source, 596 const content::NotificationSource& source,
600 const content::NotificationDetails& details) { 597 const content::NotificationDetails& details) {
601 Profile* profile = Profile::FromWebUI(web_ui()); 598 Profile* profile = Profile::FromWebUI(web_ui());
602 Profile* source_profile = NULL; 599 Profile* source_profile = NULL;
603 switch (type) { 600 switch (type) {
604 // We listen for notifications that will result in the page being 601 // We listen for notifications that will result in the page being
605 // repopulated with data twice for the same event in certain cases. 602 // repopulated with data twice for the same event in certain cases.
606 // For instance, EXTENSION_LOADED & EXTENSION_HOST_CREATED because 603 // For instance, EXTENSION_LOADED & EXTENSION_HOST_CREATED because
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 chrome::VIEW_TYPE_EXTENSION_DIALOG == host_type) 782 chrome::VIEW_TYPE_EXTENSION_DIALOG == host_type)
786 continue; 783 continue;
787 784
788 GURL url = host->GetDelegate()->GetURL(); 785 GURL url = host->GetDelegate()->GetURL();
789 content::RenderProcessHost* process = host->GetProcess(); 786 content::RenderProcessHost* process = host->GetProcess();
790 result->push_back( 787 result->push_back(
791 ExtensionPage(url, process->GetID(), host->GetRoutingID(), 788 ExtensionPage(url, process->GetID(), host->GetRoutingID(),
792 process->GetBrowserContext()->IsOffTheRecord())); 789 process->GetBrowserContext()->IsOffTheRecord()));
793 } 790 }
794 } 791 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/extension_settings_handler.h ('k') | chrome/browser/ui/webui/options/font_settings_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698