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

Side by Side Diff: chrome/browser/extensions/extensions_ui.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/extensions/extensions_ui.h" 5 #include "chrome/browser/extensions/extensions_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h"
11 #include "base/base64.h" 10 #include "base/base64.h"
12 #include "base/callback.h" 11 #include "base/callback.h"
13 #include "base/file_util.h" 12 #include "base/file_util.h"
14 #include "base/singleton.h" 13 #include "base/singleton.h"
15 #include "base/string_number_conversions.h" 14 #include "base/string_number_conversions.h"
16 #include "base/string_util.h" 15 #include "base/string_util.h"
17 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
18 #include "base/threading/thread.h" 17 #include "base/threading/thread.h"
19 #include "base/version.h" 18 #include "base/version.h"
20 #include "chrome/browser/browser_list.h" 19 #include "chrome/browser/browser_list.h"
(...skipping 26 matching lines...) Expand all
47 #include "chrome/common/pref_names.h" 46 #include "chrome/common/pref_names.h"
48 #include "chrome/common/url_constants.h" 47 #include "chrome/common/url_constants.h"
49 #include "gfx/codec/png_codec.h" 48 #include "gfx/codec/png_codec.h"
50 #include "gfx/color_utils.h" 49 #include "gfx/color_utils.h"
51 #include "gfx/skbitmap_operations.h" 50 #include "gfx/skbitmap_operations.h"
52 #include "grit/browser_resources.h" 51 #include "grit/browser_resources.h"
53 #include "grit/chromium_strings.h" 52 #include "grit/chromium_strings.h"
54 #include "grit/generated_resources.h" 53 #include "grit/generated_resources.h"
55 #include "grit/theme_resources.h" 54 #include "grit/theme_resources.h"
56 #include "net/base/net_util.h" 55 #include "net/base/net_util.h"
56 #include "ui/base/resource/resource_bundle.h"
57 #include "webkit/glue/image_decoder.h" 57 #include "webkit/glue/image_decoder.h"
58 58
59 namespace { 59 namespace {
60 60
61 bool ShouldShowExtension(const Extension* extension) { 61 bool ShouldShowExtension(const Extension* extension) {
62 // Don't show themes since this page's UI isn't really useful for themes. 62 // Don't show themes since this page's UI isn't really useful for themes.
63 if (extension->is_theme()) 63 if (extension->is_theme())
64 return false; 64 return false;
65 65
66 // Don't show component extensions because they are only extensions as an 66 // Don't show component extensions because they are only extensions as an
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 // static 970 // static
971 RefCountedMemory* ExtensionsUI::GetFaviconResourceBytes() { 971 RefCountedMemory* ExtensionsUI::GetFaviconResourceBytes() {
972 return ResourceBundle::GetSharedInstance(). 972 return ResourceBundle::GetSharedInstance().
973 LoadDataResourceBytes(IDR_PLUGIN); 973 LoadDataResourceBytes(IDR_PLUGIN);
974 } 974 }
975 975
976 // static 976 // static
977 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { 977 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) {
978 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, false); 978 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, false);
979 } 979 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_protocols.cc ('k') | chrome/browser/extensions/theme_installed_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698