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

Unified Diff: components/cloud_devices/common/cloud_devices_urls.cc

Issue 296593003: Make various string_util functions take StringPieces instead of char[]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resync Created 6 years, 7 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
Index: components/cloud_devices/common/cloud_devices_urls.cc
diff --git a/components/cloud_devices/common/cloud_devices_urls.cc b/components/cloud_devices/common/cloud_devices_urls.cc
index 33f6acc3185134f0ee0a2ecd8aaa1ef503a58db3..9e1090e3093daf503b9cce9cda887b4a7aab6992 100644
--- a/components/cloud_devices/common/cloud_devices_urls.cc
+++ b/components/cloud_devices/common/cloud_devices_urls.cc
@@ -33,6 +33,7 @@ namespace {
const char kCloudPrintURL[] = "https://www.google.com/cloudprint";
const char kCloudDevicesUrl[] = "https://www.googleapis.com/clouddevices/v1";
+
}
// Returns the root service URL for the cloud print service. The default is to
@@ -50,7 +51,7 @@ GURL GetCloudPrintURL() {
GURL GetCloudPrintRelativeURL(const std::string& relative_path) {
GURL url = GetCloudPrintURL();
std::string path;
- const char kURLPathSeparator[] = "/";
+ static const char kURLPathSeparator[] = "/";
base::TrimString(url.path(), kURLPathSeparator, &path);
std::string trimmed_path;
base::TrimString(relative_path, kURLPathSeparator, &trimmed_path);
« no previous file with comments | « components/autofill/core/browser/validation.cc ('k') | components/webdata/common/web_database_migration_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698