From 59383c78c7b67b435ff4970060213928e1f153b8 Mon Sep 17 00:00:00 2001 From: "erg@chromium.org" Date: Wed, 17 Apr 2013 16:43:27 +0000 Subject: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. In r174057, ajwong@ added support for implicit testing to scoped_ptr<>. Removes these in content/. BUG=232084 Review URL: https://codereview.chromium.org/14081010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194608 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/plugin_service_impl.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'content/browser/plugin_service_impl.cc') diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc index a800ec2..3986644 100644 --- a/content/browser/plugin_service_impl.cc +++ b/content/browser/plugin_service_impl.cc @@ -152,9 +152,9 @@ PluginServiceImpl::~PluginServiceImpl() { // Release the events since they're owned by RegKey, not WaitableEvent. hkcu_watcher_.StopWatching(); hklm_watcher_.StopWatching(); - if (hkcu_event_.get()) + if (hkcu_event_) hkcu_event_->Release(); - if (hklm_event_.get()) + if (hklm_event_) hklm_event_->Release(); #endif // Make sure no plugin channel requests have been leaked. @@ -606,7 +606,7 @@ void PluginServiceImpl::GetPlugins(const GetPluginsCallback& callback) { } else { // If we switch back to loading plugins in process, then we need to make // sure g_thread_init() gets called since plugins may call glib at load. - if (!plugin_loader_.get()) + if (!plugin_loader_) plugin_loader_ = new PluginLoaderPosix; BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, base::Bind(&PluginLoaderPosix::LoadPlugins, plugin_loader_, @@ -633,7 +633,7 @@ void PluginServiceImpl::GetPluginsInternal( void PluginServiceImpl::OnWaitableEventSignaled( base::WaitableEvent* waitable_event) { #if defined(OS_WIN) - if (waitable_event == hkcu_event_.get()) { + if (waitable_event == hkcu_event_) { hkcu_key_.StartWatching(); } else { hklm_key_.StartWatching(); -- cgit v1.1