| 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;
|
|
|
|
|