diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-02 21:15:09 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-02 21:15:09 +0000 |
commit | dc24976fc87171d50b49f37bbaaa23ae53e51f4b (patch) | |
tree | 8d7c684afa0d65e22efc3384197ef5b50d867160 /chrome/browser/extensions/api/notifications/notifications_api.cc | |
parent | fc72bb18b111ff63e57135d97de6d59291f3b7b8 (diff) | |
download | chromium_src-dc24976fc87171d50b49f37bbaaa23ae53e51f4b.zip chromium_src-dc24976fc87171d50b49f37bbaaa23ae53e51f4b.tar.gz chromium_src-dc24976fc87171d50b49f37bbaaa23ae53e51f4b.tar.bz2 |
Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*"
Linux fixes, Part 2 of N
BUG=110610
TBR=darin
Review URL: https://chromiumcodereview.appspot.com/16295003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/notifications/notifications_api.cc')
-rw-r--r-- | chrome/browser/extensions/api/notifications/notifications_api.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.cc b/chrome/browser/extensions/api/notifications/notifications_api.cc index 597cc8a..3bacbad 100644 --- a/chrome/browser/extensions/api/notifications/notifications_api.cc +++ b/chrome/browser/extensions/api/notifications/notifications_api.cc @@ -58,7 +58,7 @@ class NotificationsApiDelegate : public NotificationDelegate { id_(id), scoped_id_(CreateScopedIdentifier(extension_id, id)), process_id_(-1) { - DCHECK(api_function_); + DCHECK(api_function_.get()); if (api_function_->render_view_host()) process_id_ = api_function->render_view_host()->GetProcess()->GetID(); } @@ -105,7 +105,7 @@ class NotificationsApiDelegate : public NotificationDelegate { // until ReleaseRVH is called, and api_function_ (as a // UIThreadExtensionFunction) will zero out its copy of render_view_host // when the RVH goes away. - if (!api_function_) + if (!api_function_.get()) return NULL; return api_function_->render_view_host(); } |