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

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

Issue 11299192: Ensure that Metro chrome in ASH is able to connect to an existing desktop chrome AURA process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 "base/bind.h" 10 #include "base/bind.h"
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698