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

Side by Side Diff: chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.cc

Issue 2911773002: Clean up unused grit header includes in chrome/ (Closed)
Patch Set: rebase Created 3 years, 6 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
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/exclusive_access/exclusive_access_bubble_type.h" 5 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/common/url_constants.h" 8 #include "chrome/common/url_constants.h"
9 #include "chrome/grit/generated_resources.h" 9 #include "chrome/grit/generated_resources.h"
10 #include "extensions/browser/extension_registry.h" 10 #include "extensions/browser/extension_registry.h"
11 #include "extensions/common/constants.h" 11 #include "extensions/common/constants.h"
12 #include "extensions/common/extension.h" 12 #include "extensions/common/extension.h"
13 #include "extensions/common/extension_set.h" 13 #include "extensions/common/extension_set.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/strings/grit/ui_strings.h"
16 15
17 namespace exclusive_access_bubble { 16 namespace exclusive_access_bubble {
18 17
19 base::string16 GetLabelTextForType(ExclusiveAccessBubbleType type, 18 base::string16 GetLabelTextForType(ExclusiveAccessBubbleType type,
20 const GURL& url, 19 const GURL& url,
21 extensions::ExtensionRegistry* registry) { 20 extensions::ExtensionRegistry* registry) {
22 base::string16 host(base::UTF8ToUTF16(url.host())); 21 base::string16 host(base::UTF8ToUTF16(url.host()));
23 if (registry) { 22 if (registry) {
24 const extensions::Extension* extension = 23 const extensions::Extension* extension =
25 registry->enabled_extensions().GetExtensionOrAppByURL(url); 24 registry->enabled_extensions().GetExtensionOrAppByURL(url);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 IDS_FULLSCREEN_PRESS_ESC_TO_EXIT_MOUSELOCK, accelerator); 130 IDS_FULLSCREEN_PRESS_ESC_TO_EXIT_MOUSELOCK, accelerator);
132 case EXCLUSIVE_ACCESS_BUBBLE_TYPE_NONE: 131 case EXCLUSIVE_ACCESS_BUBBLE_TYPE_NONE:
133 NOTREACHED(); 132 NOTREACHED();
134 return base::string16(); 133 return base::string16();
135 } 134 }
136 NOTREACHED(); 135 NOTREACHED();
137 return base::string16(); 136 return base::string16();
138 } 137 }
139 138
140 } // namespace exclusive_access_bubble 139 } // namespace exclusive_access_bubble
OLDNEW
« no previous file with comments | « chrome/browser/ui/confirm_bubble_model.cc ('k') | chrome/browser/ui/extensions/extension_install_ui_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698