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

Side by Side Diff: chrome/browser/supervised_user/legacy/permission_request_creator_sync.cc

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/supervised_user/legacy/permission_request_creator_sync. h" 5 #include "chrome/browser/supervised_user/legacy/permission_request_creator_sync. h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_ service.h" 11 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_ service.h"
12 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" 12 #include "chrome/browser/supervised_user/supervised_user_settings_service.h"
13 #include "components/browser_sync/browser/profile_sync_service.h" 13 #include "components/browser_sync/profile_sync_service.h"
14 #include "google_apis/gaia/google_service_auth_error.h" 14 #include "google_apis/gaia/google_service_auth_error.h"
15 #include "net/base/escape.h" 15 #include "net/base/escape.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 const char kSupervisedUserAccessRequestKeyPrefix[] = 18 const char kSupervisedUserAccessRequestKeyPrefix[] =
19 "X-ManagedUser-AccessRequests"; 19 "X-ManagedUser-AccessRequests";
20 const char kSupervisedUserInstallRequestKeyPrefix[] = 20 const char kSupervisedUserInstallRequestKeyPrefix[] =
21 "X-ManagedUser-InstallRequests"; 21 "X-ManagedUser-InstallRequests";
22 const char kSupervisedUserUpdateRequestKeyPrefix[] = 22 const char kSupervisedUserUpdateRequestKeyPrefix[] =
23 "X-ManagedUser-UpdateRequests"; 23 "X-ManagedUser-UpdateRequests";
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 if (value) { 93 if (value) {
94 bool success = value->GetAsBoolean(&notifications_enabled); 94 bool success = value->GetAsBoolean(&notifications_enabled);
95 DCHECK(success); 95 DCHECK(success);
96 } 96 }
97 dict->SetBoolean(kNotificationSetting, notifications_enabled); 97 dict->SetBoolean(kNotificationSetting, notifications_enabled);
98 98
99 settings_service_->UploadItem(key, std::move(dict)); 99 settings_service_->UploadItem(key, std::move(dict));
100 100
101 callback.Run(true); 101 callback.Run(true);
102 } 102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698