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

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

Issue 1033253002: Supervised users: Don't URLEscape extension update requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e91d236f621be96cce5c902aad1927ab170eccd8..25c4ab613b829903492e0b3c09d3fdc74cf2f147 100644
--- a/chrome/browser/supervised_user/legacy/permission_request_creator_sync.cc
+++ b/chrome/browser/supervised_user/legacy/permission_request_creator_sync.cc
@@ -52,7 +52,7 @@ void PermissionRequestCreatorSync::CreateURLAccessRequest(
const GURL& url_requested,
const SuccessCallback& callback) {
CreateRequest(kSupervisedUserAccessRequestKeyPrefix,
- url_requested.spec(),
+ net::EscapeQueryParamValue(url_requested.spec(), true),
callback);
}
@@ -66,10 +66,9 @@ void PermissionRequestCreatorSync::CreateRequest(
const std::string& prefix,
const std::string& data,
const SuccessCallback& callback) {
- // Escape the data string and add the prefix.
- std::string key = SupervisedUserSettingsService::MakeSplitSettingKey(
- prefix,
- net::EscapeQueryParamValue(data, true));
+ // Add the prefix.
Pam (message me for reviews) 2015/03/27 12:13:54 Please add a note to the corresponding .h file men
Marc Treib 2015/03/27 12:19:16 This is a private method. CreateURLAccessRequest a
+ std::string key =
+ SupervisedUserSettingsService::MakeSplitSettingKey(prefix, data);
scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue);
// TODO(sergiu): Use sane time here when it's ready.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698