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

Unified Diff: chrome/browser/ui/android/infobars/save_password_infobar.cc

Issue 1128073003: [Smart Lock] Make link from brading string (Google Smart Lock) in save password infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « chrome/browser/ui/android/infobars/save_password_infobar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/infobars/save_password_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/save_password_infobar.cc b/chrome/browser/ui/android/infobars/save_password_infobar.cc
index 7704e3c3ef101c075619cf488e09e05a59925776..88e1824cdb4d6e31ca7cde99b87441dc31f7272b 100644
--- a/chrome/browser/ui/android/infobars/save_password_infobar.cc
+++ b/chrome/browser/ui/android/infobars/save_password_infobar.cc
@@ -31,8 +31,13 @@ SavePasswordInfoBar::CreateRenderInfoBar(JNIEnv* env) {
return Java_SavePasswordInfoBar_show(
env, reinterpret_cast<intptr_t>(this), GetEnumeratedIconId(),
- message_text.obj(), ok_button_text.obj(), cancel_button_text.obj(),
- save_password_delegate->ShouldShowMoreButton());
+ message_text.obj(), save_password_delegate->title_link_range().start(),
+ save_password_delegate->title_link_range().end(), ok_button_text.obj(),
+ cancel_button_text.obj(), save_password_delegate->ShouldShowMoreButton());
+}
+
+void SavePasswordInfoBar::OnLinkClicked(JNIEnv* env, jobject obj) {
+ GetDelegate()->LinkClicked(NEW_FOREGROUND_TAB);
}
bool SavePasswordInfoBar::Register(JNIEnv* env) {
« no previous file with comments | « chrome/browser/ui/android/infobars/save_password_infobar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698