OLD | NEW |
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/options/pack_extension_handler.h" | 10 #include "chrome/browser/ui/webui/extensions/pack_extension_handler.h" |
11 #include "chrome/browser/ui/webui/options/extension_settings_handler.h" | 11 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
12 #include "chrome/browser/ui/webui/shared_resources_data_source.h" | 12 #include "chrome/browser/ui/webui/shared_resources_data_source.h" |
13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
15 #include "content/public/browser/web_ui.h" | 15 #include "content/public/browser/web_ui.h" |
16 #include "grit/browser_resources.h" | 16 #include "grit/browser_resources.h" |
17 | 17 |
18 using content::WebContents; | 18 using content::WebContents; |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
(...skipping 21 matching lines...) Expand all Loading... |
43 handler->GetLocalizedValues(source->localized_strings()); | 43 handler->GetLocalizedValues(source->localized_strings()); |
44 web_ui->AddMessageHandler(handler); | 44 web_ui->AddMessageHandler(handler); |
45 | 45 |
46 PackExtensionHandler* pack_handler = new PackExtensionHandler(); | 46 PackExtensionHandler* pack_handler = new PackExtensionHandler(); |
47 pack_handler->GetLocalizedValues(source->localized_strings()); | 47 pack_handler->GetLocalizedValues(source->localized_strings()); |
48 web_ui->AddMessageHandler(pack_handler); | 48 web_ui->AddMessageHandler(pack_handler); |
49 } | 49 } |
50 | 50 |
51 ExtensionsUI::~ExtensionsUI() { | 51 ExtensionsUI::~ExtensionsUI() { |
52 } | 52 } |
OLD | NEW |