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

Side by Side Diff: chrome/browser/ui/webui/uber/uber_ui.cc

Issue 1494293004: Componentize strings from generated_resources needed by LocalizedError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeOS Created 5 years 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
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/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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/reset_profile_settings_handler.cc ('k') | chrome/common/localized_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698