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

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

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | 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/downloads_ui.h" 5 #include "chrome/browser/ui/webui/downloads_ui.h"
6 6
7 #include "base/memory/ref_counted_memory.h" 7 #include "base/memory/ref_counted_memory.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/defaults.h" 13 #include "chrome/browser/defaults.h"
14 #include "chrome/browser/download/download_service.h" 14 #include "chrome/browser/download/download_service.h"
15 #include "chrome/browser/download/download_service_factory.h" 15 #include "chrome/browser/download/download_service_factory.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/ui/webui/downloads_dom_handler.h" 17 #include "chrome/browser/ui/webui/downloads_dom_handler.h"
18 #include "chrome/browser/ui/webui/theme_source.h" 18 #include "chrome/browser/ui/webui/theme_source.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "chrome/common/url_constants.h" 20 #include "chrome/common/url_constants.h"
21 #include "chrome/grit/chromium_strings.h"
22 #include "chrome/grit/generated_resources.h"
21 #include "content/public/browser/download_manager.h" 23 #include "content/public/browser/download_manager.h"
22 #include "content/public/browser/url_data_source.h" 24 #include "content/public/browser/url_data_source.h"
23 #include "content/public/browser/web_contents.h" 25 #include "content/public/browser/web_contents.h"
24 #include "content/public/browser/web_ui.h" 26 #include "content/public/browser/web_ui.h"
25 #include "content/public/browser/web_ui_data_source.h" 27 #include "content/public/browser/web_ui_data_source.h"
26 #include "grit/browser_resources.h" 28 #include "grit/browser_resources.h"
27 #include "grit/chromium_strings.h"
28 #include "grit/generated_resources.h"
29 #include "grit/theme_resources.h" 29 #include "grit/theme_resources.h"
30 #include "ui/base/resource/resource_bundle.h" 30 #include "ui/base/resource/resource_bundle.h"
31 31
32 using content::BrowserContext; 32 using content::BrowserContext;
33 using content::DownloadManager; 33 using content::DownloadManager;
34 using content::WebContents; 34 using content::WebContents;
35 35
36 namespace { 36 namespace {
37 37
38 content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) { 38 content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 content::URLDataSource::Add(profile, theme); 116 content::URLDataSource::Add(profile, theme);
117 #endif 117 #endif
118 } 118 }
119 119
120 // static 120 // static
121 base::RefCountedMemory* DownloadsUI::GetFaviconResourceBytes( 121 base::RefCountedMemory* DownloadsUI::GetFaviconResourceBytes(
122 ui::ScaleFactor scale_factor) { 122 ui::ScaleFactor scale_factor) {
123 return ResourceBundle::GetSharedInstance(). 123 return ResourceBundle::GetSharedInstance().
124 LoadDataResourceBytesForScale(IDR_DOWNLOADS_FAVICON, scale_factor); 124 LoadDataResourceBytesForScale(IDR_DOWNLOADS_FAVICON, scale_factor);
125 } 125 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/crashes_ui.cc ('k') | chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698