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

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: merge 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 channel_.reset(new IPC::ChannelProxy( 164 channel_.reset(new IPC::ChannelProxy(
165 effective_channel_id, 165 effective_channel_id,
166 GetChannelMode(use_named_interface), 166 GetChannelMode(use_named_interface),
167 this, 167 this,
168 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); 168 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
169 channel_->AddFilter(automation_resource_message_filter_); 169 channel_->AddFilter(automation_resource_message_filter_);
170 170
171 #if defined(OS_CHROMEOS) 171 #if defined(OS_CHROMEOS)
172 // Wait for webui login to be ready. 172 // Wait for webui login to be ready.
173 // Observer will delete itself. 173 // Observer will delete itself.
174 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kWebUILogin) && 174 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kLoginManager) &&
175 !chromeos::UserManager::Get()->user_is_logged_in()) { 175 !chromeos::UserManager::Get()->user_is_logged_in()) {
176 login_webui_ready_ = false; 176 login_webui_ready_ = false;
177 new LoginWebuiReadyObserver(this); 177 new LoginWebuiReadyObserver(this);
178 } 178 }
179 179
180 // Wait for the network manager to initialize. 180 // Wait for the network manager to initialize.
181 // The observer will delete itself when done. 181 // The observer will delete itself when done.
182 network_library_initialized_ = false; 182 network_library_initialized_ = false;
183 NetworkManagerInitObserver* observer = new NetworkManagerInitObserver(this); 183 NetworkManagerInitObserver* observer = new NetworkManagerInitObserver(this);
184 if (!observer->Init()) 184 if (!observer->Init())
(...skipping 835 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/automation/automation_provider_observers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698