| 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_prompt.h" | 5 #include "chrome/browser/ui/startup/obsolete_os_prompt.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/infobars/infobar_tab_helper.h" | 8 #include "chrome/browser/api/infobars/infobar_tab_helper.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_tabstrip.h" | 10 #include "chrome/browser/ui/browser_tabstrip.h" |
| 11 #include "chrome/browser/ui/gtk/gtk_util.h" | 11 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 12 #include "chrome/browser/ui/startup/obsolete_os_info_bar.h" | 12 #include "chrome/browser/ui/startup/obsolete_os_info_bar.h" |
| 13 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 13 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 14 #include "grit/chromium_strings.h" | 14 #include "grit/chromium_strings.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 | 17 |
| 18 namespace chrome { | 18 namespace chrome { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 if (!tab) | 35 if (!tab) |
| 36 return; | 36 return; |
| 37 tab->infobar_tab_helper()->AddInfoBar( | 37 tab->infobar_tab_helper()->AddInfoBar( |
| 38 new ObsoleteOSInfoBar(tab->infobar_tab_helper(), | 38 new ObsoleteOSInfoBar(tab->infobar_tab_helper(), |
| 39 message, | 39 message, |
| 40 GURL(kLearnMoreURL))); | 40 GURL(kLearnMoreURL))); |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 | 43 |
| 44 } // namespace chrome | 44 } // namespace chrome |
| OLD | NEW |