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

Unified Diff: chrome/browser/ui/views/autofill/new_credit_card_bubble_views.cc

Issue 1661713002: Remove the rest of HostDesktopType from c/b/ui/browser_finder.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-11
Patch Set: linux adl Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/autofill/new_credit_card_bubble_views.cc
diff --git a/chrome/browser/ui/views/autofill/new_credit_card_bubble_views.cc b/chrome/browser/ui/views/autofill/new_credit_card_bubble_views.cc
index 7810c0880deb1b7991bca78ff8203502eb59441f..119ba245f11fe7be57cc3eaaa1aa22d141d09a59 100644
--- a/chrome/browser/ui/views/autofill/new_credit_card_bubble_views.cc
+++ b/chrome/browser/ui/views/autofill/new_credit_card_bubble_views.cc
@@ -32,8 +32,7 @@ const int kAnchorlessTopPadding = 10;
// Get the view this bubble will be anchored to via |controller|.
views::View* GetAnchor(NewCreditCardBubbleController* controller) {
- Browser* browser = chrome::FindTabbedBrowser(controller->profile(), false,
- chrome::GetActiveDesktop());
+ Browser* browser = chrome::FindTabbedBrowser(controller->profile(), false);
if (!browser)
return NULL;
BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser);
@@ -110,8 +109,7 @@ gfx::Rect NewCreditCardBubbleViews::GetBubbleBounds() {
if (GetAnchorView())
return bounds;
- Browser* browser = chrome::FindBrowserWithProfile(controller_->profile(),
- chrome::GetActiveDesktop());
+ Browser* browser = chrome::FindBrowserWithProfile(controller_->profile());
DCHECK(browser);
BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser);

Powered by Google App Engine
This is Rietveld 408576698