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

Unified Diff: pdf/out_of_process_instance.cc

Issue 2240803002: Clean up some PDF code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « chrome/browser/resources/pdf/pdf.js ('k') | no next file » | 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 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;
}
« no previous file with comments | « chrome/browser/resources/pdf/pdf.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698