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/uber/uber_ui.h" | 5 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" | 10 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
11 #include "chrome/browser/ui/webui/extensions/extensions_ui.h" | 11 #include "chrome/browser/ui/webui/extensions/extensions_ui.h" |
12 #include "chrome/browser/ui/webui/log_web_ui_url.h" | 12 #include "chrome/browser/ui/webui/log_web_ui_url.h" |
13 #include "chrome/browser/ui/webui/md_history_ui.h" | 13 #include "chrome/browser/ui/webui/md_history_ui.h" |
14 #include "chrome/browser/ui/webui/options/options_ui.h" | 14 #include "chrome/browser/ui/webui/options/options_ui.h" |
15 #include "chrome/common/chrome_features.h" | 15 #include "chrome/common/chrome_features.h" |
16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" | 17 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 19 #include "chrome/grit/browser_resources.h" |
19 #include "chrome/grit/chromium_strings.h" | 20 #include "chrome/grit/chromium_strings.h" |
20 #include "chrome/grit/generated_resources.h" | 21 #include "chrome/grit/generated_resources.h" |
21 #include "components/strings/grit/components_strings.h" | 22 #include "components/strings/grit/components_strings.h" |
22 #include "content/public/browser/browser_context.h" | 23 #include "content/public/browser/browser_context.h" |
23 #include "content/public/browser/navigation_controller.h" | 24 #include "content/public/browser/navigation_controller.h" |
24 #include "content/public/browser/navigation_entry.h" | 25 #include "content/public/browser/navigation_entry.h" |
25 #include "content/public/browser/notification_source.h" | 26 #include "content/public/browser/notification_source.h" |
26 #include "content/public/browser/web_contents.h" | 27 #include "content/public/browser/web_contents.h" |
27 #include "content/public/browser/web_ui.h" | 28 #include "content/public/browser/web_ui.h" |
28 #include "content/public/browser/web_ui_data_source.h" | 29 #include "content/public/browser/web_ui_data_source.h" |
29 #include "extensions/browser/extension_registry.h" | 30 #include "extensions/browser/extension_registry.h" |
30 #include "extensions/common/extension_set.h" | 31 #include "extensions/common/extension_set.h" |
31 #include "grit/browser_resources.h" | |
32 #include "grit/components_strings.h" | |
33 | 32 |
34 using content::NavigationController; | 33 using content::NavigationController; |
35 using content::NavigationEntry; | 34 using content::NavigationEntry; |
36 using content::RenderViewHost; | 35 using content::RenderViewHost; |
37 using content::WebContents; | 36 using content::WebContents; |
38 | 37 |
39 namespace { | 38 namespace { |
40 | 39 |
41 content::WebUIDataSource* CreateUberHTMLSource() { | 40 content::WebUIDataSource* CreateUberHTMLSource() { |
42 content::WebUIDataSource* source = | 41 content::WebUIDataSource* source = |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // opens the default history page if one is uninstalled or disabled. | 243 // opens the default history page if one is uninstalled or disabled. |
245 UpdateHistoryNavigation(web_ui()); | 244 UpdateHistoryNavigation(web_ui()); |
246 } | 245 } |
247 | 246 |
248 void UberFrameUI::OnExtensionUnloaded( | 247 void UberFrameUI::OnExtensionUnloaded( |
249 content::BrowserContext* browser_context, | 248 content::BrowserContext* browser_context, |
250 const extensions::Extension* extension, | 249 const extensions::Extension* extension, |
251 extensions::UnloadedExtensionInfo::Reason reason) { | 250 extensions::UnloadedExtensionInfo::Reason reason) { |
252 UpdateHistoryNavigation(web_ui()); | 251 UpdateHistoryNavigation(web_ui()); |
253 } | 252 } |
OLD | NEW |