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

Unified Diff: pdf/out_of_process_instance.cc

Issue 1284833004: Remove remaining legacy SplitString calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « net/tools/disk_cache_memory_test/disk_cache_memory_test.cc ('k') | ppapi/proxy/file_chooser_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/out_of_process_instance.cc
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
index 1d782beb1b104c498a2dab0b4fb6869ed57e6f99..705da85ab7d9bf424d5a2a23b06568420d3c7405 100644
--- a/pdf/out_of_process_instance.cc
+++ b/pdf/out_of_process_instance.cc
@@ -206,8 +206,9 @@ const PPP_Pdf ppp_private = {
int ExtractPrintPreviewPageIndex(const std::string& src_url) {
// Sample |src_url| format: chrome://print/id/page_index/print.pdf
- std::vector<std::string> url_substr;
- base::SplitString(src_url.substr(strlen(kChromePrint)), '/', &url_substr);
+ std::vector<std::string> url_substr = base::SplitString(
+ src_url.substr(strlen(kChromePrint)), "/",
+ base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (url_substr.size() != 3)
return -1;
« no previous file with comments | « net/tools/disk_cache_memory_test/disk_cache_memory_test.cc ('k') | ppapi/proxy/file_chooser_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698