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

Side by Side Diff: chrome/browser/safe_browsing/protocol_manager_helper.cc

Issue 15906011: Use a direct include of strings headers in chrome/browser/r*-s*/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
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 4
5 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" 5 #include "chrome/browser/safe_browsing/protocol_manager_helper.h"
6 6
7 #ifndef NDEBUG 7 #ifndef NDEBUG
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #endif 9 #endif
10 #include "base/environment.h" 10 #include "base/environment.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "base/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "chrome/common/chrome_version_info.h" 15 #include "chrome/common/chrome_version_info.h"
16 #include "chrome/common/env_vars.h" 16 #include "chrome/common/env_vars.h"
17 #include "google_apis/google_api_keys.h" 17 #include "google_apis/google_api_keys.h"
18 #include "net/base/escape.h" 18 #include "net/base/escape.h"
19 19
20 SafeBrowsingProtocolConfig::SafeBrowsingProtocolConfig() 20 SafeBrowsingProtocolConfig::SafeBrowsingProtocolConfig()
21 : disable_auto_update(false) { 21 : disable_auto_update(false) {
22 } 22 }
23 23
24 SafeBrowsingProtocolConfig::~SafeBrowsingProtocolConfig() { 24 SafeBrowsingProtocolConfig::~SafeBrowsingProtocolConfig() {
(...skipping 23 matching lines...) Expand all
48 base::StringAppendF(&url, "&key=%s", 48 base::StringAppendF(&url, "&key=%s",
49 net::EscapeQueryParamValue(api_key, true).c_str()); 49 net::EscapeQueryParamValue(api_key, true).c_str());
50 } 50 }
51 if (!additional_query.empty()) { 51 if (!additional_query.empty()) {
52 DCHECK(url.find("?") != std::string::npos); 52 DCHECK(url.find("?") != std::string::npos);
53 url.append("&"); 53 url.append("&");
54 url.append(additional_query); 54 url.append(additional_query);
55 } 55 }
56 return url; 56 return url;
57 } 57 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/protocol_manager.cc ('k') | chrome/browser/safe_browsing/protocol_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698