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

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc

Issue 270793002: webstorePrivate: Support an |authuser| property in beginInstallWithManifest3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Let authuser pass thru as a string rather than forcing int Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
index 86523364d12b05943652d0dc5785a03758f2e3f4..653f4a4aa8c0230bf0efa0cc1f788b79ea97d588 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
@@ -271,10 +271,12 @@ void WebstorePrivateInstallBundleFunction::OnBundleInstallCompleted() {
}
WebstorePrivateBeginInstallWithManifest3Function::
- WebstorePrivateBeginInstallWithManifest3Function() {}
+ WebstorePrivateBeginInstallWithManifest3Function() {
+}
WebstorePrivateBeginInstallWithManifest3Function::
- ~WebstorePrivateBeginInstallWithManifest3Function() {}
+ ~WebstorePrivateBeginInstallWithManifest3Function() {
+}
bool WebstorePrivateBeginInstallWithManifest3Function::RunAsync() {
params_ = BeginInstallWithManifest3::Params::Create(*args_);
@@ -303,6 +305,10 @@ bool WebstorePrivateBeginInstallWithManifest3Function::RunAsync() {
}
}
+ if (params_->details.authuser) {
+ authuser_ = *params_->details.authuser;
+ }
+
std::string icon_data = params_->details.icon_data ?
*params_->details.icon_data : std::string();
@@ -492,6 +498,7 @@ void WebstorePrivateBeginInstallWithManifest3Function::InstallUIProceed() {
approval->skip_post_install_ui = params_->details.enable_launcher;
approval->dummy_extension = dummy_extension_;
approval->installing_icon = gfx::ImageSkia::CreateFrom1xBitmap(icon_);
+ approval->authuser = authuser_;
g_pending_approvals.Get().PushApproval(approval.Pass());
SetResultCode(ERROR_NONE);

Powered by Google App Engine
This is Rietveld 408576698