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

Unified Diff: chrome/browser/extensions/webstore_standalone_installer.cc

Issue 2655823002: Include referrer chain with inline install requests. (Closed)
Patch Set: Add missing comment. Created 3 years, 11 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
« no previous file with comments | « chrome/browser/extensions/webstore_standalone_installer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/webstore_standalone_installer.cc
diff --git a/chrome/browser/extensions/webstore_standalone_installer.cc b/chrome/browser/extensions/webstore_standalone_installer.cc
index 84f1905e3959975cd4237ff408facc824ade74e4..425fb1fbec99e8789066262aa821b17a0976ce8f 100644
--- a/chrome/browser/extensions/webstore_standalone_installer.cc
+++ b/chrome/browser/extensions/webstore_standalone_installer.cc
@@ -69,6 +69,11 @@ void WebstoreStandaloneInstaller::BeginInstall() {
profile_->GetRequestContext(),
GetRequestorURL(),
id_));
+
+ std::string json_post_data = GetJsonPostData();
+ if (!json_post_data.empty())
+ webstore_data_fetcher_->SetJsonPostData(json_post_data);
+
webstore_data_fetcher_->Start();
}
@@ -159,6 +164,10 @@ void WebstoreStandaloneInstaller::InitInstallData(
// Default implementation sets no properties.
}
+std::string WebstoreStandaloneInstaller::GetJsonPostData() {
+ return std::string();
+}
+
void WebstoreStandaloneInstaller::OnManifestParsed() {
ProceedWithInstallPrompt();
}
« no previous file with comments | « chrome/browser/extensions/webstore_standalone_installer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698