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

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

Issue 10388107: [chromeos] Fix Logout automation when no browser windows are present. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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/testing_automation_provider.h" 5 #include "chrome/browser/automation/testing_automation_provider.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 2281 matching lines...) Expand 10 before | Expand all | Expand 10 after
2292 2292
2293 #if defined(OS_CHROMEOS) 2293 #if defined(OS_CHROMEOS)
2294 handler_map["GetLoginInfo"] = &TestingAutomationProvider::GetLoginInfo; 2294 handler_map["GetLoginInfo"] = &TestingAutomationProvider::GetLoginInfo;
2295 handler_map["ShowCreateAccountUI"] = 2295 handler_map["ShowCreateAccountUI"] =
2296 &TestingAutomationProvider::ShowCreateAccountUI; 2296 &TestingAutomationProvider::ShowCreateAccountUI;
2297 handler_map["ExecuteJavascriptInOOBEWebUI"] = 2297 handler_map["ExecuteJavascriptInOOBEWebUI"] =
2298 &TestingAutomationProvider::ExecuteJavascriptInOOBEWebUI; 2298 &TestingAutomationProvider::ExecuteJavascriptInOOBEWebUI;
2299 handler_map["LoginAsGuest"] = &TestingAutomationProvider::LoginAsGuest; 2299 handler_map["LoginAsGuest"] = &TestingAutomationProvider::LoginAsGuest;
2300 handler_map["AddLoginEventObserver"] = 2300 handler_map["AddLoginEventObserver"] =
2301 &TestingAutomationProvider::AddLoginEventObserver; 2301 &TestingAutomationProvider::AddLoginEventObserver;
2302 handler_map["SignOut"] = &TestingAutomationProvider::SignOut;
2302 2303
2303 handler_map["LockScreen"] = &TestingAutomationProvider::LockScreen; 2304 handler_map["LockScreen"] = &TestingAutomationProvider::LockScreen;
2304 handler_map["UnlockScreen"] = &TestingAutomationProvider::UnlockScreen; 2305 handler_map["UnlockScreen"] = &TestingAutomationProvider::UnlockScreen;
2305 handler_map["SignoutInScreenLocker"] = 2306 handler_map["SignoutInScreenLocker"] =
2306 &TestingAutomationProvider::SignoutInScreenLocker; 2307 &TestingAutomationProvider::SignoutInScreenLocker;
2307 2308
2308 handler_map["GetBatteryInfo"] = &TestingAutomationProvider::GetBatteryInfo; 2309 handler_map["GetBatteryInfo"] = &TestingAutomationProvider::GetBatteryInfo;
2309 2310
2310 handler_map["GetNetworkInfo"] = &TestingAutomationProvider::GetNetworkInfo; 2311 handler_map["GetNetworkInfo"] = &TestingAutomationProvider::GetNetworkInfo;
2311 handler_map["NetworkScan"] = &TestingAutomationProvider::NetworkScan; 2312 handler_map["NetworkScan"] = &TestingAutomationProvider::NetworkScan;
(...skipping 4847 matching lines...) Expand 10 before | Expand all | Expand 10 after
7159 *browser_handle = browser_tracker_->Add(browser); 7160 *browser_handle = browser_tracker_->Add(browser);
7160 *success = true; 7161 *success = true;
7161 } 7162 }
7162 } 7163 }
7163 } 7164 }
7164 7165
7165 void TestingAutomationProvider::OnRemoveProvider() { 7166 void TestingAutomationProvider::OnRemoveProvider() {
7166 if (g_browser_process) 7167 if (g_browser_process)
7167 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 7168 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
7168 } 7169 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698