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

Side by Side Diff: chrome/browser/ui/startup/startup_browser_creator.cc

Issue 23678007: OAuth2LoginManager+MergeSessionThrottle hardening, multi-profle support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/ui/startup/startup_browser_creator.h" 5 #include "chrome/browser/ui/startup/startup_browser_creator.h"
6 6
7 #include <algorithm> // For max(). 7 #include <algorithm> // For max().
8 #include <set> 8 #include <set>
9 9
10 #include "apps/app_load_service.h" 10 #include "apps/app_load_service.h"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 *return_code = chrome::RESULT_CODE_INVALID_CMDLINE_URL; 291 *return_code = chrome::RESULT_CODE_INVALID_CMDLINE_URL;
292 return false; 292 return false;
293 } 293 }
294 } else { 294 } else {
295 in_synchronous_profile_launch_ = false; 295 in_synchronous_profile_launch_ = false;
296 } 296 }
297 297
298 profile_launch_observer.Get().AddLaunched(profile); 298 profile_launch_observer.Get().AddLaunched(profile);
299 299
300 #if defined(OS_CHROMEOS) 300 #if defined(OS_CHROMEOS)
301 chromeos::ProfileHelper::ProfileStartup(profile, process_startup); 301 g_browser_process->platform_part()->profile_helper()->ProfileStartup(
302 profile,
303 process_startup);
302 #endif 304 #endif
303 return true; 305 return true;
304 } 306 }
305 307
306 // static 308 // static
307 bool StartupBrowserCreator::WasRestarted() { 309 bool StartupBrowserCreator::WasRestarted() {
308 // Stores the value of the preference kWasRestarted had when it was read. 310 // Stores the value of the preference kWasRestarted had when it was read.
309 static bool was_restarted = false; 311 static bool was_restarted = false;
310 312
311 if (!was_restarted_read_) { 313 if (!was_restarted_read_) {
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 745
744 // static 746 // static
745 bool StartupBrowserCreator::ActivatedProfile() { 747 bool StartupBrowserCreator::ActivatedProfile() {
746 return profile_launch_observer.Get().activated_profile(); 748 return profile_launch_observer.Get().activated_profile();
747 } 749 }
748 750
749 bool HasPendingUncleanExit(Profile* profile) { 751 bool HasPendingUncleanExit(Profile* profile) {
750 return profile->GetLastSessionExitType() == Profile::EXIT_CRASHED && 752 return profile->GetLastSessionExitType() == Profile::EXIT_CRASHED &&
751 !profile_launch_observer.Get().HasBeenLaunched(profile); 753 !profile_launch_observer.Get().HasBeenLaunched(profile);
752 } 754 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698