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

Side by Side Diff: chrome/browser/ui/webui/extensions/extensions_ui.cc

Issue 10387224: Rename ExtensionCommand* to Command* within the extension namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/extensions/extensions_ui.h" 5 #include "chrome/browser/ui/webui/extensions/extensions_ui.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 8 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
9 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" 9 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
10 #include "chrome/browser/ui/webui/extensions/extension_commands_handler.h" 10 #include "chrome/browser/ui/webui/extensions/command_handler.h"
11 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" 11 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h"
12 #include "chrome/browser/ui/webui/extensions/install_extension_handler.h" 12 #include "chrome/browser/ui/webui/extensions/install_extension_handler.h"
13 #include "chrome/browser/ui/webui/extensions/pack_extension_handler.h" 13 #include "chrome/browser/ui/webui/extensions/pack_extension_handler.h"
14 #include "chrome/browser/ui/webui/shared_resources_data_source.h" 14 #include "chrome/browser/ui/webui/shared_resources_data_source.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "content/public/browser/web_ui.h" 16 #include "content/public/browser/web_ui.h"
17 #include "grit/browser_resources.h" 17 #include "grit/browser_resources.h"
18 18
19 namespace { 19 namespace {
20 20
(...skipping 20 matching lines...) Expand all
41 ChromeURLDataManager::AddDataSource(profile, new SharedResourcesDataSource()); 41 ChromeURLDataManager::AddDataSource(profile, new SharedResourcesDataSource());
42 42
43 ExtensionSettingsHandler* handler = new ExtensionSettingsHandler(); 43 ExtensionSettingsHandler* handler = new ExtensionSettingsHandler();
44 handler->GetLocalizedValues(source->localized_strings()); 44 handler->GetLocalizedValues(source->localized_strings());
45 web_ui->AddMessageHandler(handler); 45 web_ui->AddMessageHandler(handler);
46 46
47 PackExtensionHandler* pack_handler = new PackExtensionHandler(); 47 PackExtensionHandler* pack_handler = new PackExtensionHandler();
48 pack_handler->GetLocalizedValues(source->localized_strings()); 48 pack_handler->GetLocalizedValues(source->localized_strings());
49 web_ui->AddMessageHandler(pack_handler); 49 web_ui->AddMessageHandler(pack_handler);
50 50
51 extensions::ExtensionCommandsHandler* commands_handler = 51 extensions::CommandHandler* commands_handler =
52 new extensions::ExtensionCommandsHandler(); 52 new extensions::CommandHandler();
53 commands_handler->GetLocalizedValues(source->localized_strings()); 53 commands_handler->GetLocalizedValues(source->localized_strings());
54 web_ui->AddMessageHandler(commands_handler); 54 web_ui->AddMessageHandler(commands_handler);
55 55
56 InstallExtensionHandler* install_extension_handler = 56 InstallExtensionHandler* install_extension_handler =
57 new InstallExtensionHandler(); 57 new InstallExtensionHandler();
58 install_extension_handler->GetLocalizedValues(source->localized_strings()); 58 install_extension_handler->GetLocalizedValues(source->localized_strings());
59 web_ui->AddMessageHandler(install_extension_handler); 59 web_ui->AddMessageHandler(install_extension_handler);
60 } 60 }
61 61
62 ExtensionsUI::~ExtensionsUI() { 62 ExtensionsUI::~ExtensionsUI() {
63 } 63 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_commands_handler.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698