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

Unified Diff: chrome/browser/autofill/autofill_cc_infobar_delegate.cc

Issue 9814014: Fix remaining link errors in autofill for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/autofill/autofill_cc_infobar_delegate.cc
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
index e633bdb89e8ff5dacd57faf9b571f26131db6e0a..70866226a63f12e4a31d8b5c303d37581cafbd3f 100644
--- a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
+++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
@@ -86,8 +86,14 @@ string16 AutofillCCInfoBarDelegate::GetLinkText() const {
}
bool AutofillCCInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
+#if defined(OS_ANDROID)
+ // There's no link for infobars on Android.
+ NOTREACHED();
+ return false;
+#else
Browser* browser = BrowserList::GetLastActive();
DCHECK(browser);
browser->OpenAutofillHelpTabAndActivate();
return false;
+#endif
Ilya Sherman 2012/03/21 21:50:37 nit: Please add " // #if defined(OS_ANDROID)" to
}
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | chrome/browser/autofill/autofill_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698