OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/save_card_bubble_controller_impl.h" | 5 #include "chrome/browser/ui/autofill/save_card_bubble_controller_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "chrome/browser/ui/autofill/save_card_bubble_view.h" | 9 #include "chrome/browser/ui/autofill/save_card_bubble_view.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 AutofillMetrics::SAVE_CARD_PROMPT_SHOWN, is_uploading_, is_reshow_); | 218 AutofillMetrics::SAVE_CARD_PROMPT_SHOWN, is_uploading_, is_reshow_); |
219 } | 219 } |
220 | 220 |
221 void SaveCardBubbleControllerImpl::UpdateIcon() { | 221 void SaveCardBubbleControllerImpl::UpdateIcon() { |
222 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); | 222 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); |
223 LocationBar* location_bar = browser->window()->GetLocationBar(); | 223 LocationBar* location_bar = browser->window()->GetLocationBar(); |
224 location_bar->UpdateSaveCreditCardIcon(); | 224 location_bar->UpdateSaveCreditCardIcon(); |
225 } | 225 } |
226 | 226 |
227 void SaveCardBubbleControllerImpl::OpenUrl(const GURL& url) { | 227 void SaveCardBubbleControllerImpl::OpenUrl(const GURL& url) { |
228 web_contents()->OpenURL( | 228 web_contents()->OpenURL(content::OpenURLParams( |
229 content::OpenURLParams(url, content::Referrer(), NEW_FOREGROUND_TAB, | 229 url, content::Referrer(), WindowOpenDisposition::NEW_FOREGROUND_TAB, |
230 ui::PAGE_TRANSITION_LINK, false)); | 230 ui::PAGE_TRANSITION_LINK, false)); |
231 } | 231 } |
232 | 232 |
233 } // namespace autofill | 233 } // namespace autofill |
OLD | NEW |