OLD | NEW |
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" | 10 #include "app/resource_bundle.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/extensions/extension_updater.h" | 30 #include "chrome/browser/extensions/extension_updater.h" |
31 #include "chrome/browser/google/google_util.h" | 31 #include "chrome/browser/google/google_util.h" |
32 #include "chrome/browser/prefs/pref_service.h" | 32 #include "chrome/browser/prefs/pref_service.h" |
33 #include "chrome/browser/profiles/profile.h" | 33 #include "chrome/browser/profiles/profile.h" |
34 #include "chrome/browser/renderer_host/render_process_host.h" | 34 #include "chrome/browser/renderer_host/render_process_host.h" |
35 #include "chrome/browser/renderer_host/render_widget_host.h" | 35 #include "chrome/browser/renderer_host/render_widget_host.h" |
36 #include "chrome/browser/renderer_host/render_view_host.h" | 36 #include "chrome/browser/renderer_host/render_view_host.h" |
37 #include "chrome/browser/tab_contents/background_contents.h" | 37 #include "chrome/browser/tab_contents/background_contents.h" |
38 #include "chrome/browser/tab_contents/tab_contents.h" | 38 #include "chrome/browser/tab_contents/tab_contents.h" |
39 #include "chrome/browser/tab_contents/tab_contents_view.h" | 39 #include "chrome/browser/tab_contents/tab_contents_view.h" |
40 #include "chrome/browser/ui/browser.h" | |
41 #include "chrome/common/extensions/extension.h" | 40 #include "chrome/common/extensions/extension.h" |
42 #include "chrome/common/extensions/extension_icon_set.h" | 41 #include "chrome/common/extensions/extension_icon_set.h" |
43 #include "chrome/common/extensions/user_script.h" | 42 #include "chrome/common/extensions/user_script.h" |
44 #include "chrome/common/extensions/url_pattern.h" | 43 #include "chrome/common/extensions/url_pattern.h" |
45 #include "chrome/common/jstemplate_builder.h" | 44 #include "chrome/common/jstemplate_builder.h" |
46 #include "chrome/common/notification_service.h" | 45 #include "chrome/common/notification_service.h" |
47 #include "chrome/common/notification_type.h" | 46 #include "chrome/common/notification_type.h" |
48 #include "chrome/common/pref_names.h" | 47 #include "chrome/common/pref_names.h" |
49 #include "chrome/common/url_constants.h" | 48 #include "chrome/common/url_constants.h" |
50 #include "gfx/codec/png_codec.h" | 49 #include "gfx/codec/png_codec.h" |
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 // static | 970 // static |
972 RefCountedMemory* ExtensionsUI::GetFaviconResourceBytes() { | 971 RefCountedMemory* ExtensionsUI::GetFaviconResourceBytes() { |
973 return ResourceBundle::GetSharedInstance(). | 972 return ResourceBundle::GetSharedInstance(). |
974 LoadDataResourceBytes(IDR_PLUGIN); | 973 LoadDataResourceBytes(IDR_PLUGIN); |
975 } | 974 } |
976 | 975 |
977 // static | 976 // static |
978 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { | 977 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { |
979 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, false); | 978 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, false); |
980 } | 979 } |
OLD | NEW |