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

Unified Diff: chrome/browser/supervised_user/legacy/permission_request_creator_sync.cc

Issue 2004043002: Supervised Users Initiated Installs v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kid_initiated_install
Patch Set: Fixing the build again! Created 4 years, 6 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/supervised_user/legacy/permission_request_creator_sync.cc
diff --git a/chrome/browser/supervised_user/legacy/permission_request_creator_sync.cc b/chrome/browser/supervised_user/legacy/permission_request_creator_sync.cc
index 242875d9bb057db846b10dad0a3b06df9d9a5021..f16812abea4aef0e9945fd51ba85d397dcc71dc7 100644
--- a/chrome/browser/supervised_user/legacy/permission_request_creator_sync.cc
+++ b/chrome/browser/supervised_user/legacy/permission_request_creator_sync.cc
@@ -17,6 +17,8 @@
const char kSupervisedUserAccessRequestKeyPrefix[] =
"X-ManagedUser-AccessRequests";
+const char kSupervisedUserInstallRequestKeyPrefix[] =
+ "X-ManagedUser-InstallRequests";
const char kSupervisedUserUpdateRequestKeyPrefix[] =
"X-ManagedUser-UpdateRequests";
const char kSupervisedUserAccessRequestTime[] = "timestamp";
@@ -58,6 +60,12 @@ void PermissionRequestCreatorSync::CreateURLAccessRequest(
callback);
}
+void PermissionRequestCreatorSync::CreateExtensionInstallRequest(
+ const std::string& id,
+ const SuccessCallback& callback) {
+ CreateRequest(kSupervisedUserInstallRequestKeyPrefix, id, callback);
+}
+
void PermissionRequestCreatorSync::CreateExtensionUpdateRequest(
const std::string& id,
const SuccessCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698