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

Side by Side Diff: google_apis/gcm/base/gcm_util.cc

Issue 1137463003: Support getting and deleting token for Instance ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch to land Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "google_apis/gcm/base/gcm_util.h"
6
7 #include "net/base/escape.h"
8
9 namespace gcm {
10
11 void BuildFormEncoding(const std::string& key,
12 const std::string& value,
13 std::string* out) {
14 if (!out->empty())
15 out->append("&");
16 out->append(key + "=" + net::EscapeUrlEncodedData(value, true));
17 }
18
19 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/gcm/base/gcm_util.h ('k') | google_apis/gcm/engine/gcm_registration_request_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698