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

Unified Diff: chrome/service/cloud_print/cloud_print_connector.cc

Issue 1240183002: Update SplitString calls in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « chrome/renderer/web_apps.cc ('k') | chrome/test/base/chrome_process_util_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_connector.cc
diff --git a/chrome/service/cloud_print/cloud_print_connector.cc b/chrome/service/cloud_print/cloud_print_connector.cc
index f53c865e6abe7b2db51ad5b79b70b492f371aaeb..0a7d7542e3976a8b20f23ac237adbe0366550579 100644
--- a/chrome/service/cloud_print/cloud_print_connector.cc
+++ b/chrome/service/cloud_print/cloud_print_connector.cc
@@ -420,8 +420,8 @@ void CloudPrintConnector::InitJobHandlerForPrinter(
if (tags_list->GetString(index, &tag) &&
base::StartsWith(tag, kCloudPrintServiceTagsHashTagName,
base::CompareCase::INSENSITIVE_ASCII)) {
- std::vector<std::string> tag_parts;
- base::SplitStringDontTrim(tag, '=', &tag_parts);
+ std::vector<std::string> tag_parts = base::SplitString(
+ tag, "=", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL);
DCHECK_EQ(tag_parts.size(), 2U);
if (tag_parts.size() == 2)
printer_info_cloud.tags_hash = tag_parts[1];
« no previous file with comments | « chrome/renderer/web_apps.cc ('k') | chrome/test/base/chrome_process_util_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698