Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / google_apis / gcm / base / gcm_util.cc
blobe51a498dfdcb516305cbbed51c70d2dc5e8364cb
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.
5 #include "google_apis/gcm/base/gcm_util.h"
7 #include "net/base/escape.h"
9 namespace gcm {
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));
19 } // namespace gcm