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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc

Issue 2685333005: ash: fix regression where ctrl+n put new window on wrong desktop (Closed)
Patch Set: Rebase to ToT Created 3 years, 10 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
« no previous file with comments | « chrome/browser/ui/ash/window_positioner_unittest.cc ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/bookmarks/bookmark_bubble_sign_in_delegate.h" 5 #include "chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h"
6 6
7 #include "chrome/browser/signin/signin_promo.h" 7 #include "chrome/browser/signin/signin_promo.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_finder.h" 9 #include "chrome/browser/ui/browser_finder.h"
10 #include "chrome/browser/ui/browser_list.h" 10 #include "chrome/browser/ui/browser_list.h"
(...skipping 20 matching lines...) Expand all
31 void BookmarkBubbleSignInDelegate::OnBrowserRemoved(Browser* browser) { 31 void BookmarkBubbleSignInDelegate::OnBrowserRemoved(Browser* browser) {
32 if (browser == browser_) 32 if (browser == browser_)
33 browser_ = NULL; 33 browser_ = NULL;
34 } 34 }
35 35
36 void BookmarkBubbleSignInDelegate::EnsureBrowser() { 36 void BookmarkBubbleSignInDelegate::EnsureBrowser() {
37 if (!browser_) { 37 if (!browser_) {
38 Profile* original_profile = profile_->GetOriginalProfile(); 38 Profile* original_profile = profile_->GetOriginalProfile();
39 browser_ = chrome::FindLastActiveWithProfile(original_profile); 39 browser_ = chrome::FindLastActiveWithProfile(original_profile);
40 if (!browser_) { 40 if (!browser_) {
41 browser_ = new Browser(Browser::CreateParams(original_profile)); 41 browser_ = new Browser(Browser::CreateParams(original_profile, true));
42 } 42 }
43 } 43 }
44 } 44 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/window_positioner_unittest.cc ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698