| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |