OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/startup/obsolete_os_info_bar.h" | 5 #include "chrome/browser/ui/startup/obsolete_os_info_bar.h" |
6 | 6 |
7 #include "chrome/browser/infobars/infobar_tab_helper.h" | 7 #include "chrome/browser/infobars/infobar_tab_helper.h" |
8 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 8 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 } | 35 } |
36 | 36 |
37 string16 ObsoleteOSInfoBar::GetLinkText() const { | 37 string16 ObsoleteOSInfoBar::GetLinkText() const { |
38 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); | 38 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); |
39 } | 39 } |
40 | 40 |
41 bool ObsoleteOSInfoBar::LinkClicked(WindowOpenDisposition disposition) { | 41 bool ObsoleteOSInfoBar::LinkClicked(WindowOpenDisposition disposition) { |
42 OpenURLParams params( | 42 OpenURLParams params( |
43 learn_more_url_, Referrer(), disposition, content::PAGE_TRANSITION_LINK, | 43 learn_more_url_, Referrer(), disposition, content::PAGE_TRANSITION_LINK, |
44 false); | 44 false); |
45 owner()->web_contents()->OpenURL(params); | 45 owner()->GetWebContents()->OpenURL(params); |
46 return false; | 46 return false; |
47 } | 47 } |
48 | 48 |
49 } // namespace chrome | 49 } // namespace chrome |
OLD | NEW |