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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_details_container.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/autofill_details_container.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_details_container.mm b/chrome/browser/ui/cocoa/autofill/autofill_details_container.mm
index af7d072a4d766836ecd9dbaca44a556cd4e574e0..88b426a268013c84b3ebd9ff1618b29fb4483f28 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_details_container.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_details_container.mm
@@ -11,6 +11,7 @@
#import "chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.h"
#import "chrome/browser/ui/cocoa/autofill/autofill_section_container.h"
#import "chrome/browser/ui/cocoa/info_bubble_view.h"
+#include "ui/base/cocoa/cocoa_base_utils.h"
typedef BOOL (^FieldFilterBlock)(NSView<AutofillInputField>*);
@@ -215,8 +216,8 @@ typedef BOOL (^FieldFilterBlock)(NSView<AutofillInputField>*);
[[errorBubbleController_ bubble] setAlignment:
info_bubble::kAlignLeftEdgeToAnchorEdge];
}
- [errorBubbleController_ setAnchorPoint:
- [parentWindow convertBaseToScreen:anchorPoint]];
+ [errorBubbleController_ setAnchorPoint:ui::ConvertPointFromWindowToScreen(
+ parentWindow, anchorPoint)];
errorBubbleAnchorView_ = field;
[errorBubbleController_ showWindow:self];

Powered by Google App Engine
This is Rietveld 408576698