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

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

Issue 8436002: [cros] Remove Views implementation for login/OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix all tests except of EnrollmentOK browser_test Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 channel_.reset(new IPC::ChannelProxy( 165 channel_.reset(new IPC::ChannelProxy(
166 effective_channel_id, 166 effective_channel_id,
167 GetChannelMode(use_named_interface), 167 GetChannelMode(use_named_interface),
168 this, 168 this,
169 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); 169 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
170 channel_->AddFilter(automation_resource_message_filter_); 170 channel_->AddFilter(automation_resource_message_filter_);
171 171
172 #if defined(OS_CHROMEOS) 172 #if defined(OS_CHROMEOS)
173 // Wait for webui login to be ready. 173 // Wait for webui login to be ready.
174 // Observer will delete itself. 174 // Observer will delete itself.
175 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kWebUILogin) && 175 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kLoginManager) &&
176 !chromeos::UserManager::Get()->user_is_logged_in()) { 176 !chromeos::UserManager::Get()->user_is_logged_in()) {
177 login_webui_ready_ = false; 177 login_webui_ready_ = false;
178 new LoginWebuiReadyObserver(this); 178 new LoginWebuiReadyObserver(this);
179 } 179 }
180 180
181 // Wait for the network manager to initialize. 181 // Wait for the network manager to initialize.
182 // The observer will delete itself when done. 182 // The observer will delete itself when done.
183 network_library_initialized_ = false; 183 network_library_initialized_ = false;
184 NetworkManagerInitObserver* observer = new NetworkManagerInitObserver(this); 184 NetworkManagerInitObserver* observer = new NetworkManagerInitObserver(this);
185 if (!observer->Init()) 185 if (!observer->Init())
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 } 1020 }
1021 } 1021 }
1022 } 1022 }
1023 1023
1024 void AutomationProvider::SaveAsAsync(int tab_handle) { 1024 void AutomationProvider::SaveAsAsync(int tab_handle) {
1025 NavigationController* tab = NULL; 1025 NavigationController* tab = NULL;
1026 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab); 1026 TabContents* tab_contents = GetTabContentsForHandle(tab_handle, &tab);
1027 if (tab_contents) 1027 if (tab_contents)
1028 tab_contents->OnSavePage(); 1028 tab_contents->OnSavePage();
1029 } 1029 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698