Commit 77e775b2 authored by ahutter@chromium.org's avatar ahutter@chromium.org

Missing ifdef for Autocheckout bubble causes crash on non-views platforms


BUG=229590


Review URL: https://chromiumcodereview.appspot.com/13928024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193429 0039d316-1c4b-4281-b951-d872f2087c98
parent 2df79e2a
......@@ -136,6 +136,10 @@ void TabAutofillManagerDelegate::ShowPasswordGenerationBubble(
void TabAutofillManagerDelegate::ShowAutocheckoutBubble(
const gfx::RectF& bounding_box,
const base::Callback<void(bool)>& callback) {
#if !defined(TOOLKIT_VIEWS)
callback.Run(false);
NOTIMPLEMENTED();
#else
HideAutocheckoutBubble();
// Convert |bounding_box| to be in screen space.
......@@ -150,6 +154,7 @@ void TabAutofillManagerDelegate::ShowAutocheckoutBubble(
web_contents_->GetView()->GetTopLevelNativeWindow(),
callback)));
autocheckout_bubble_->ShowBubble();
#endif // #if !defined(TOOLKIT_VIEWS)
}
void TabAutofillManagerDelegate::HideAutocheckoutBubble() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment