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

Unified Diff: extensions/browser/user_script_loader.cc

Issue 982113002: Fix a bug in UserScriptLoader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | extensions/common/host_id.cc » ('j') | extensions/common/user_script.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/user_script_loader.cc
diff --git a/extensions/browser/user_script_loader.cc b/extensions/browser/user_script_loader.cc
index ab7aaaea549d92923e62fee093b58fef32314a98..c5b367c3b37d7b50ebf179e366c9c5884d3dd891 100644
--- a/extensions/browser/user_script_loader.cc
+++ b/extensions/browser/user_script_loader.cc
@@ -447,11 +447,12 @@ void UserScriptLoader::OnScriptsLoaded(
// If user scripts are coming from a <webview>, will only notify the
// RenderProcessHost of that <webview>; otherwise will notify all of the
// RenderProcessHosts.
- if (user_scripts && !user_scripts->empty() &&
- (*user_scripts)[0].consumer_instance_type() ==
+ if (user_scripts_ && !user_scripts_->empty() &&
Devlin 2015/03/05 20:18:38 D'oh.
+ (*user_scripts_)[0].consumer_instance_type() ==
UserScript::ConsumerInstanceType::WEBVIEW) {
- DCHECK_EQ(1u, user_scripts->size());
- int render_process_id = (*user_scripts)[0].routing_info().render_process_id;
+ DCHECK_EQ(1u, user_scripts_->size());
+ int render_process_id =
+ (*user_scripts_)[0].routing_info().render_process_id;
content::RenderProcessHost* host =
content::RenderProcessHost::FromID(render_process_id);
if (host)
« no previous file with comments | « no previous file | extensions/common/host_id.cc » ('j') | extensions/common/user_script.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698