| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // | |
| 5 // Contains the definition of a few helper functions used for generating sync | |
| 6 // URLs. | |
| 7 | 4 |
| 8 #include "components/sync/engine_impl/net/url_translator.h" | 5 #include "components/sync/engine_impl/net/url_translator.h" |
| 9 | 6 |
| 10 #include "net/base/escape.h" | 7 #include "net/base/escape.h" |
| 11 | 8 |
| 12 using std::string; | 9 using std::string; |
| 13 | 10 |
| 14 namespace syncer { | 11 namespace syncer { |
| 15 | 12 |
| 16 namespace { | 13 namespace { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 46 string query; | 43 string query; |
| 47 query += kParameterClient; | 44 query += kParameterClient; |
| 48 query += "=" + CgiEscapeString(kClientName); | 45 query += "=" + CgiEscapeString(kClientName); |
| 49 query += "&"; | 46 query += "&"; |
| 50 query += kParameterClientID; | 47 query += kParameterClientID; |
| 51 query += "=" + CgiEscapeString(client_id); | 48 query += "=" + CgiEscapeString(client_id); |
| 52 return query; | 49 return query; |
| 53 } | 50 } |
| 54 | 51 |
| 55 } // namespace syncer | 52 } // namespace syncer |
| OLD | NEW |