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

Side by Side Diff: chrome/browser/ui/website_settings/website_settings_ui.cc

Issue 515433002: Cleanup: Remove unneeded ui/ grit header includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « chrome/browser/ui/views/website_settings/permissions_bubble_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/website_settings/website_settings_ui.h" 5 #include "chrome/browser/ui/website_settings/website_settings_ui.h"
6 6
7 #include "chrome/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "grit/theme_resources.h" 8 #include "grit/theme_resources.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
11 #include "ui/gfx/image/image.h" 11 #include "ui/gfx/image/image.h"
12 #include "ui/resources/grit/ui_resources.h"
13 12
14 namespace { 13 namespace {
15 14
16 const int kInvalidResourceID = -1; 15 const int kInvalidResourceID = -1;
17 16
18 // The resource id's for the strings that are displayed on the permissions 17 // The resource id's for the strings that are displayed on the permissions
19 // button if the permission setting is managed by policy. 18 // button if the permission setting is managed by policy.
20 const int kPermissionButtonTextIDPolicyManaged[] = { 19 const int kPermissionButtonTextIDPolicyManaged[] = {
21 kInvalidResourceID, 20 kInvalidResourceID,
22 IDS_WEBSITE_SETTINGS_BUTTON_TEXT_ALLOWED_BY_POLICY, 21 IDS_WEBSITE_SETTINGS_BUTTON_TEXT_ALLOWED_BY_POLICY,
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // the first time. 326 // the first time.
328 return IDR_PAGEINFO_INFO; 327 return IDR_PAGEINFO_INFO;
329 } 328 }
330 329
331 // static 330 // static
332 const gfx::Image& WebsiteSettingsUI::GetFirstVisitIcon( 331 const gfx::Image& WebsiteSettingsUI::GetFirstVisitIcon(
333 const base::string16& first_visit) { 332 const base::string16& first_visit) {
334 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 333 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
335 return rb.GetNativeImageNamed(GetFirstVisitIconID(first_visit)); 334 return rb.GetNativeImageNamed(GetFirstVisitIconID(first_visit));
336 } 335 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/website_settings/permissions_bubble_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698