Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 581 } | 581 } |
| 582 | 582 |
| 583 Profile* profile = ProfileManager::GetLastUsedProfile(); | 583 Profile* profile = ProfileManager::GetLastUsedProfile(); |
| 584 if (!profile) { | 584 if (!profile) { |
| 585 // We should only be able to get here if the profile already exists and | 585 // We should only be able to get here if the profile already exists and |
| 586 // has been created. | 586 // has been created. |
| 587 NOTREACHED(); | 587 NOTREACHED(); |
| 588 return; | 588 return; |
| 589 } | 589 } |
| 590 ProcessCmdLineImpl(cmd_line, cur_dir, false, profile, Profiles(), NULL, NULL); | 590 ProcessCmdLineImpl(cmd_line, cur_dir, false, profile, Profiles(), NULL, NULL); |
| 591 g_browser_process->PlatformSpecificCommandLineProcessing(cmd_line); | |
|
Ben Goodger (Google)
2012/11/27 16:56:41
to the uninitiated (I know this code only slightly
ananta
2012/11/27 19:16:03
Moved this to the ProcessSingletonNotificationCall
| |
| 591 } | 592 } |
| 592 | 593 |
| 593 bool HasPendingUncleanExit(Profile* profile) { | 594 bool HasPendingUncleanExit(Profile* profile) { |
| 594 return profile->GetLastSessionExitType() == Profile::EXIT_CRASHED && | 595 return profile->GetLastSessionExitType() == Profile::EXIT_CRASHED && |
| 595 !profile_launch_observer.Get().HasBeenLaunched(profile); | 596 !profile_launch_observer.Get().HasBeenLaunched(profile); |
| 596 } | 597 } |
| OLD | NEW |