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

Side by Side Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 9034032: And now NewRunnableMethod(), you die. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chrome_frame_automation Created 8 years, 11 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) 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/chromeos/chrome_browser_main_chromeos.h" 5 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 chromeos::LoginUtils::DoBrowserLaunch(profile, NULL); 162 chromeos::LoginUtils::DoBrowserLaunch(profile, NULL);
163 if (!pending_requests_) 163 if (!pending_requests_)
164 delete this; 164 delete this;
165 } 165 }
166 166
167 scoped_refptr<chromeos::Authenticator> authenticator_; 167 scoped_refptr<chromeos::Authenticator> authenticator_;
168 bool pending_requests_; 168 bool pending_requests_;
169 bool profile_prepared_; 169 bool profile_prepared_;
170 }; 170 };
171 171
172 // Allows authenticator to be invoked without adding refcounting. The instances
173 // will delete themselves upon completion.
174 DISABLE_RUNNABLE_METHOD_REFCOUNT(StubLogin);
175
176 void OptionallyRunChromeOSLoginManager(const CommandLine& parsed_command_line, 172 void OptionallyRunChromeOSLoginManager(const CommandLine& parsed_command_line,
177 Profile* profile) { 173 Profile* profile) {
178 if (parsed_command_line.HasSwitch(switches::kLoginManager)) { 174 if (parsed_command_line.HasSwitch(switches::kLoginManager)) {
179 std::string first_screen = 175 std::string first_screen =
180 parsed_command_line.GetSwitchValueASCII(switches::kLoginScreen); 176 parsed_command_line.GetSwitchValueASCII(switches::kLoginScreen);
181 std::string size_arg = 177 std::string size_arg =
182 parsed_command_line.GetSwitchValueASCII( 178 parsed_command_line.GetSwitchValueASCII(
183 switches::kLoginScreenSize); 179 switches::kLoginScreenSize);
184 gfx::Size size(0, 0); 180 gfx::Size size(0, 0);
185 // Allow the size of the login window to be set explicitly. If not set, 181 // Allow the size of the login window to be set explicitly. If not set,
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 // Singletons are finally destroyed in AtExitManager. 487 // Singletons are finally destroyed in AtExitManager.
492 chromeos::XInputHierarchyChangedEventListener::GetInstance()->Stop(); 488 chromeos::XInputHierarchyChangedEventListener::GetInstance()->Stop();
493 489
494 // chromeos::SystemKeyEventListener::Shutdown() is always safe to call, 490 // chromeos::SystemKeyEventListener::Shutdown() is always safe to call,
495 // even if Initialize() wasn't called. 491 // even if Initialize() wasn't called.
496 chromeos::SystemKeyEventListener::Shutdown(); 492 chromeos::SystemKeyEventListener::Shutdown();
497 chromeos::AudioHandler::Shutdown(); 493 chromeos::AudioHandler::Shutdown();
498 494
499 ChromeBrowserMainPartsLinux::PostMainMessageLoopRun(); 495 ChromeBrowserMainPartsLinux::PostMainMessageLoopRun();
500 } 496 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/audio_handler.h ('k') | chrome/browser/chromeos/customization_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698