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

Unified Diff: chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.mm

Issue 1775223002: Prepare chrome/ for compilation with OS X 10.7 deployment target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors. Fix null-window error. Created 4 years, 9 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/cocoa/autofill/save_card_bubble_view_bridge.mm
diff --git a/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.mm b/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.mm
index 969b3db34e8f37ee389a85cdd81ee1b4abf12e1c..46bf2f6e16689a6e98c71067c7ab12723a7588ee 100644
--- a/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.mm
+++ b/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.mm
@@ -14,6 +14,7 @@
#import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h"
#include "grit/components_strings.h"
#include "skia/ext/skia_utils_mac.h"
+#include "ui/base/cocoa/cocoa_base_utils.h"
#import "ui/base/cocoa/controls/hyperlink_text_view.h"
#import "ui/base/cocoa/window_size_constants.h"
#include "ui/base/l10n/l10n_util.h"
@@ -198,8 +199,8 @@ void SaveCardBubbleViewBridge::Hide() {
NSPoint anchorPoint =
[[browserWindowController toolbarController] saveCreditCardBubblePoint];
- anchorPoint =
- [[browserWindowController window] convertBaseToScreen:anchorPoint];
+ anchorPoint = ui::ConvertPointFromWindowToScreen(
+ [browserWindowController window], anchorPoint);
if ((self = [super initWithWindow:window
parentWindow:[browserWindowController window]
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/new_credit_card_bubble_cocoa.mm ('k') | chrome/browser/ui/cocoa/base_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698