| Index: pdf/out_of_process_instance.cc
|
| diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
|
| index c06523de72d8b9d2210d400fc2e579dd6211431c..af5d1a506fbb8c64c9d74bcee18c1e3df6091654 100644
|
| --- a/pdf/out_of_process_instance.cc
|
| +++ b/pdf/out_of_process_instance.cc
|
| @@ -321,10 +321,9 @@ bool OutOfProcessInstance::Init(uint32_t argc,
|
| if (!document_url_var.is_string())
|
| return false;
|
| std::string document_url = document_url_var.AsString();
|
| - std::string extension_url = std::string(kChromeExtension);
|
| - std::string print_preview_url = std::string(kChromePrint);
|
| - if (!base::StringPiece(document_url).starts_with(kChromeExtension) &&
|
| - !base::StringPiece(document_url).starts_with(kChromePrint)) {
|
| + base::StringPiece document_url_piece(document_url);
|
| + if (!document_url_piece.starts_with(kChromeExtension) &&
|
| + !document_url_piece.starts_with(kChromePrint)) {
|
| return false;
|
| }
|
|
|
|
|