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

Unified Diff: chrome/browser/extensions/script_executor.cc

Issue 15987009: Update chrome/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/extensions/external_install_ui.cc ('k') | chrome/browser/extensions/unpacked_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/script_executor.cc
diff --git a/chrome/browser/extensions/script_executor.cc b/chrome/browser/extensions/script_executor.cc
index b35b77664065faba9921c4e5cfab6d5023c87179..9e4aecdcc2cf660a1757262ab5ae9494cfddcb04 100644
--- a/chrome/browser/extensions/script_executor.cc
+++ b/chrome/browser/extensions/script_executor.cc
@@ -76,7 +76,7 @@ class Handler : public content::WebContentsObserver {
int32 on_page_id,
const GURL& on_url,
const base::ListValue& script_result) {
- if (script_observers_ && error.empty()) {
+ if (script_observers_.get() && error.empty()) {
TabHelper::ScriptExecutionObserver::ExecutingScriptsMap id_map;
id_map[extension_id_] = std::set<std::string>();
FOR_EACH_OBSERVER(TabHelper::ScriptExecutionObserver, *script_observers_,
« no previous file with comments | « chrome/browser/extensions/external_install_ui.cc ('k') | chrome/browser/extensions/unpacked_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698