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

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

Issue 7621032: Initial inline web store install bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback. Created 9 years, 4 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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tab_helper.cc ('k') | chrome/browser/extensions/webstore_inline_install_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698