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

Side by Side Diff: chrome/browser/ui/webui/conflicts_ui.cc

Issue 10387010: Select theme resources from ResourceBundle at requested scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 8 years, 7 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 | Annotate | Revision Log
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/conflicts_ui.h" 5 #include "chrome/browser/ui/webui/conflicts_ui.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "content/public/browser/user_metrics.h" 26 #include "content/public/browser/user_metrics.h"
27 #include "content/public/browser/web_contents.h" 27 #include "content/public/browser/web_contents.h"
28 #include "content/public/browser/web_ui.h" 28 #include "content/public/browser/web_ui.h"
29 #include "content/public/browser/web_ui_message_handler.h" 29 #include "content/public/browser/web_ui_message_handler.h"
30 #include "grit/browser_resources.h" 30 #include "grit/browser_resources.h"
31 #include "grit/chromium_strings.h" 31 #include "grit/chromium_strings.h"
32 #include "grit/generated_resources.h" 32 #include "grit/generated_resources.h"
33 #include "grit/theme_resources.h" 33 #include "grit/theme_resources.h"
34 #include "grit/theme_resources_standard.h" 34 #include "grit/theme_resources_standard.h"
35 #include "ui/base/l10n/l10n_util.h" 35 #include "ui/base/l10n/l10n_util.h"
36 #include "ui/base/layout.h"
36 #include "ui/base/resource/resource_bundle.h" 37 #include "ui/base/resource/resource_bundle.h"
37 38
38 using content::UserMetricsAction; 39 using content::UserMetricsAction;
39 using content::WebContents; 40 using content::WebContents;
40 using content::WebUIMessageHandler; 41 using content::WebUIMessageHandler;
41 42
42 namespace { 43 namespace {
43 44
44 ChromeWebUIDataSource* CreateConflictsUIHTMLSource() { 45 ChromeWebUIDataSource* CreateConflictsUIHTMLSource() {
45 ChromeWebUIDataSource* source = 46 ChromeWebUIDataSource* source =
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 // Set up the about:conflicts source. 169 // Set up the about:conflicts source.
169 Profile* profile = Profile::FromWebUI(web_ui); 170 Profile* profile = Profile::FromWebUI(web_ui);
170 ChromeURLDataManager::AddDataSource(profile, CreateConflictsUIHTMLSource()); 171 ChromeURLDataManager::AddDataSource(profile, CreateConflictsUIHTMLSource());
171 } 172 }
172 173
173 // static 174 // static
174 base::RefCountedMemory* ConflictsUI::GetFaviconResourceBytes() { 175 base::RefCountedMemory* ConflictsUI::GetFaviconResourceBytes() {
175 return static_cast<base::RefCountedMemory*>( 176 return static_cast<base::RefCountedMemory*>(
176 ResourceBundle::GetSharedInstance().LoadDataResourceBytes( 177 ResourceBundle::GetSharedInstance().LoadDataResourceBytes(
177 IDR_CONFLICT_FAVICON)); 178 IDR_CONFLICT_FAVICON, ui::SCALE_FACTOR_NONE));
178 } 179 }
179 180
180 #endif 181 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698