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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 source->AddLocalizedString("showButton", IDS_EXTENSIONS_SHOW_BUTTON); | 131 source->AddLocalizedString("showButton", IDS_EXTENSIONS_SHOW_BUTTON); |
132 | 132 |
133 source->AddString("incognitoWarning", | 133 source->AddString("incognitoWarning", |
134 l10n_util::GetStringFUTF16(IDS_EXTENSIONS_INCOGNITO_WARNING, | 134 l10n_util::GetStringFUTF16(IDS_EXTENSIONS_INCOGNITO_WARNING, |
135 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); | 135 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
136 | 136 |
137 source->AddString("suggestGallery", | 137 source->AddString("suggestGallery", |
138 l10n_util::GetStringFUTF16(IDS_EXTENSIONS_NONE_INSTALLED_SUGGEST_GALLERY, | 138 l10n_util::GetStringFUTF16(IDS_EXTENSIONS_NONE_INSTALLED_SUGGEST_GALLERY, |
139 ASCIIToUTF16("<a href='") + | 139 ASCIIToUTF16("<a href='") + |
140 ASCIIToUTF16(google_util::AppendGoogleLocaleParam( | 140 ASCIIToUTF16(google_util::AppendGoogleLocaleParam( |
141 GURL(Extension::ChromeStoreLaunchURL())).spec()) + | 141 GURL(extension_misc::GetWebstoreLaunchURL())).spec()) + |
142 ASCIIToUTF16("'>"), | 142 ASCIIToUTF16("'>"), |
143 ASCIIToUTF16("</a>"))); | 143 ASCIIToUTF16("</a>"))); |
144 | 144 |
145 source->AddString("getMoreExtensions", | 145 source->AddString("getMoreExtensions", |
146 ASCIIToUTF16("<a href='") + | 146 ASCIIToUTF16("<a href='") + |
147 ASCIIToUTF16(google_util::AppendGoogleLocaleParam( | 147 ASCIIToUTF16(google_util::AppendGoogleLocaleParam( |
148 GURL(Extension::ChromeStoreLaunchURL())).spec()) + | 148 GURL(extension_misc::GetWebstoreLaunchURL())).spec()) + |
149 ASCIIToUTF16("'>") + | 149 ASCIIToUTF16("'>") + |
150 l10n_util::GetStringUTF16(IDS_GET_MORE_EXTENSIONS) + | 150 l10n_util::GetStringUTF16(IDS_GET_MORE_EXTENSIONS) + |
151 ASCIIToUTF16("</a>")); | 151 ASCIIToUTF16("</a>")); |
152 | 152 |
153 source->set_json_path("strings.js"); | 153 source->set_json_path("strings.js"); |
154 source->add_resource_path("extensions_ui.js", IDR_EXTENSIONS_UI_JS); | 154 source->add_resource_path("extensions_ui.js", IDR_EXTENSIONS_UI_JS); |
155 source->set_default_resource(IDR_EXTENSIONS_UI_HTML); | 155 source->set_default_resource(IDR_EXTENSIONS_UI_HTML); |
156 return source; | 156 return source; |
157 } | 157 } |
158 | 158 |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 return ResourceBundle::GetSharedInstance(). | 797 return ResourceBundle::GetSharedInstance(). |
798 LoadDataResourceBytes(IDR_PLUGIN); | 798 LoadDataResourceBytes(IDR_PLUGIN); |
799 } | 799 } |
800 | 800 |
801 // static | 801 // static |
802 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { | 802 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { |
803 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, | 803 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, |
804 false, | 804 false, |
805 PrefService::SYNCABLE_PREF); | 805 PrefService::SYNCABLE_PREF); |
806 } | 806 } |
OLD | NEW |