OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // | 83 // |
84 // ExtensionsHTMLSource | 84 // ExtensionsHTMLSource |
85 // | 85 // |
86 //////////////////////////////////////////////////////////////////////////////// | 86 //////////////////////////////////////////////////////////////////////////////// |
87 | 87 |
88 ExtensionsUIHTMLSource::ExtensionsUIHTMLSource() | 88 ExtensionsUIHTMLSource::ExtensionsUIHTMLSource() |
89 : DataSource(chrome::kChromeUIExtensionsHost, MessageLoop::current()) { | 89 : DataSource(chrome::kChromeUIExtensionsHost, MessageLoop::current()) { |
90 } | 90 } |
91 | 91 |
92 void ExtensionsUIHTMLSource::StartDataRequest(const std::string& path, | 92 void ExtensionsUIHTMLSource::StartDataRequest(const std::string& path, |
93 bool is_off_the_record, int request_id) { | 93 bool is_incognito, int request_id) { |
94 DictionaryValue localized_strings; | 94 DictionaryValue localized_strings; |
95 localized_strings.SetString("title", | 95 localized_strings.SetString("title", |
96 l10n_util::GetStringUTF16(IDS_EXTENSIONS_TITLE)); | 96 l10n_util::GetStringUTF16(IDS_EXTENSIONS_TITLE)); |
97 localized_strings.SetString("devModeLink", | 97 localized_strings.SetString("devModeLink", |
98 l10n_util::GetStringUTF16(IDS_EXTENSIONS_DEVELOPER_MODE_LINK)); | 98 l10n_util::GetStringUTF16(IDS_EXTENSIONS_DEVELOPER_MODE_LINK)); |
99 localized_strings.SetString("devModePrefix", | 99 localized_strings.SetString("devModePrefix", |
100 l10n_util::GetStringUTF16(IDS_EXTENSIONS_DEVELOPER_MODE_PREFIX)); | 100 l10n_util::GetStringUTF16(IDS_EXTENSIONS_DEVELOPER_MODE_PREFIX)); |
101 localized_strings.SetString("loadUnpackedButton", | 101 localized_strings.SetString("loadUnpackedButton", |
102 l10n_util::GetStringUTF16(IDS_EXTENSIONS_LOAD_UNPACKED_BUTTON)); | 102 l10n_util::GetStringUTF16(IDS_EXTENSIONS_LOAD_UNPACKED_BUTTON)); |
103 localized_strings.SetString("packButton", | 103 localized_strings.SetString("packButton", |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 // static | 879 // static |
880 RefCountedMemory* ExtensionsUI::GetFaviconResourceBytes() { | 880 RefCountedMemory* ExtensionsUI::GetFaviconResourceBytes() { |
881 return ResourceBundle::GetSharedInstance(). | 881 return ResourceBundle::GetSharedInstance(). |
882 LoadDataResourceBytes(IDR_PLUGIN); | 882 LoadDataResourceBytes(IDR_PLUGIN); |
883 } | 883 } |
884 | 884 |
885 // static | 885 // static |
886 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { | 886 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { |
887 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, false); | 887 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, false); |
888 } | 888 } |
OLD | NEW |