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

Side by Side Diff: chrome/browser/automation/automation_provider.cc

Issue 16295003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/automation/automation_provider.h" 5 #include "chrome/browser/automation/automation_provider.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 if (!automation_resource_message_filter_.get()) { 205 if (!automation_resource_message_filter_.get()) {
206 automation_resource_message_filter_ = new AutomationResourceMessageFilter; 206 automation_resource_message_filter_ = new AutomationResourceMessageFilter;
207 } 207 }
208 208
209 channel_.reset(new IPC::ChannelProxy( 209 channel_.reset(new IPC::ChannelProxy(
210 effective_channel_id, 210 effective_channel_id,
211 GetChannelMode(use_named_interface), 211 GetChannelMode(use_named_interface),
212 this, 212 this,
213 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); 213 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
214 channel_->AddFilter(automation_resource_message_filter_); 214 channel_->AddFilter(automation_resource_message_filter_.get());
215 215
216 #if defined(OS_CHROMEOS) 216 #if defined(OS_CHROMEOS)
217 if (use_initial_load_observers_) { 217 if (use_initial_load_observers_) {
218 // Wait for webui login to be ready. 218 // Wait for webui login to be ready.
219 // Observer will delete itself. 219 // Observer will delete itself.
220 if (CommandLine::ForCurrentProcess()->HasSwitch( 220 if (CommandLine::ForCurrentProcess()->HasSwitch(
221 chromeos::switches::kLoginManager) && 221 chromeos::switches::kLoginManager) &&
222 !chromeos::LoginState::Get()->IsUserLoggedIn()) { 222 !chromeos::LoginState::Get()->IsUserLoggedIn()) {
223 login_webui_ready_ = false; 223 login_webui_ready_ = false;
224 new OOBEWebuiReadyObserver(this); 224 new OOBEWebuiReadyObserver(this);
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 825
826 return NULL; 826 return NULL;
827 } 827 }
828 828
829 void AutomationProvider::SaveAsAsync(int tab_handle) { 829 void AutomationProvider::SaveAsAsync(int tab_handle) {
830 NavigationController* tab = NULL; 830 NavigationController* tab = NULL;
831 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab); 831 WebContents* web_contents = GetWebContentsForHandle(tab_handle, &tab);
832 if (web_contents) 832 if (web_contents)
833 web_contents->OnSavePage(); 833 web_contents->OnSavePage();
834 } 834 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698