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

Unified Diff: extensions/renderer/script_injection_manager.cc

Issue 2421383003: Add operator==(const GURL&, const StringPiece&) to gurl.h (Closed)
Patch Set: remove comment Created 4 years, 2 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 | « content/renderer/render_frame_impl.cc ('k') | net/quic/chromium/quic_stream_factory_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_injection_manager.cc
diff --git a/extensions/renderer/script_injection_manager.cc b/extensions/renderer/script_injection_manager.cc
index 3b6bc305484683f7d116d98aeda9568a9dc3d555..19c356f4c2b57eaca8d77d04c09092848b3bf335 100644
--- a/extensions/renderer/script_injection_manager.cc
+++ b/extensions/renderer/script_injection_manager.cc
@@ -218,7 +218,7 @@ void ScriptInjectionManager::RFOHelper::OnExecuteDeclarativeScript(
// TODO(markdittmer): URL-checking isn't the best security measure.
// Begin script injection workflow only if the current URL is identical to
// the one that matched declarative conditions in the browser.
- if (render_frame()->GetWebFrame()->document().url() == url) {
+ if (GURL(render_frame()->GetWebFrame()->document().url()) == url) {
manager_->HandleExecuteDeclarativeScript(render_frame(),
tab_id,
extension_id,
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | net/quic/chromium/quic_stream_factory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698