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 "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" | 9 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
10 #include "chrome/browser/ui/webui/extensions/extensions_ui.h" | 10 #include "chrome/browser/ui/webui/extensions/extensions_ui.h" |
11 #include "chrome/browser/ui/webui/log_web_ui_url.h" | 11 #include "chrome/browser/ui/webui/log_web_ui_url.h" |
12 #include "chrome/browser/ui/webui/options/options_ui.h" | 12 #include "chrome/browser/ui/webui/options/options_ui.h" |
13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" | 14 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" |
15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
16 #include "chrome/grit/chromium_strings.h" | 16 #include "chrome/grit/chromium_strings.h" |
17 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
| 18 #include "components/strings/grit/components_strings.h" |
18 #include "content/public/browser/browser_context.h" | 19 #include "content/public/browser/browser_context.h" |
19 #include "content/public/browser/navigation_controller.h" | 20 #include "content/public/browser/navigation_controller.h" |
20 #include "content/public/browser/navigation_entry.h" | 21 #include "content/public/browser/navigation_entry.h" |
21 #include "content/public/browser/notification_source.h" | 22 #include "content/public/browser/notification_source.h" |
22 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
23 #include "content/public/browser/web_ui.h" | 24 #include "content/public/browser/web_ui.h" |
24 #include "content/public/browser/web_ui_data_source.h" | 25 #include "content/public/browser/web_ui_data_source.h" |
25 #include "extensions/browser/extension_registry.h" | 26 #include "extensions/browser/extension_registry.h" |
26 #include "extensions/common/extension_set.h" | 27 #include "extensions/common/extension_set.h" |
27 #include "grit/browser_resources.h" | 28 #include "grit/browser_resources.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 // opens the default history page if one is uninstalled or disabled. | 242 // opens the default history page if one is uninstalled or disabled. |
242 UpdateHistoryNavigation(web_ui()); | 243 UpdateHistoryNavigation(web_ui()); |
243 } | 244 } |
244 | 245 |
245 void UberFrameUI::OnExtensionUnloaded( | 246 void UberFrameUI::OnExtensionUnloaded( |
246 content::BrowserContext* browser_context, | 247 content::BrowserContext* browser_context, |
247 const extensions::Extension* extension, | 248 const extensions::Extension* extension, |
248 extensions::UnloadedExtensionInfo::Reason reason) { | 249 extensions::UnloadedExtensionInfo::Reason reason) { |
249 UpdateHistoryNavigation(web_ui()); | 250 UpdateHistoryNavigation(web_ui()); |
250 } | 251 } |
OLD | NEW |