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

Side by Side Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 2505533002: Http Bad: Add "Learn more" sublabel to warning message and make it clickable (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" 5 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 #else 385 #else
386 chrome::FindBrowserWithWebContents(web_contents()) 386 chrome::FindBrowserWithWebContents(web_contents())
387 ->window() 387 ->window()
388 ->ShowAvatarBubbleFromAvatarButton( 388 ->ShowAvatarBubbleFromAvatarButton(
389 BrowserWindow::AVATAR_BUBBLE_MODE_SIGNIN, 389 BrowserWindow::AVATAR_BUBBLE_MODE_SIGNIN,
390 signin::ManageAccountsParams(), 390 signin::ManageAccountsParams(),
391 signin_metrics::AccessPoint::ACCESS_POINT_AUTOFILL_DROPDOWN); 391 signin_metrics::AccessPoint::ACCESS_POINT_AUTOFILL_DROPDOWN);
392 #endif 392 #endif
393 } 393 }
394 394
395 void ChromeAutofillClient::OpenUrl(const GURL& url) {
396 web_contents()->OpenURL(content::OpenURLParams(
397 url, content::Referrer(), WindowOpenDisposition::NEW_FOREGROUND_TAB,
398 ui::PAGE_TRANSITION_LINK, false /* is_renderer_initiated */));
399 }
400
395 } // namespace autofill 401 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698