Chromium Code Reviews| 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) |