| 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/time.h" | 7 #include "base/time.h" |
| 8 #include "chrome/browser/api/infobars/infobar_tab_helper.h" |
| 8 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/infobars/infobar_tab_helper.h" | |
| 10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| 11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/browser_tabstrip.h" | 12 #include "chrome/browser/ui/browser_tabstrip.h" |
| 13 #include "chrome/browser/ui/cocoa/obsolete_os.h" | 13 #include "chrome/browser/ui/cocoa/obsolete_os.h" |
| 14 #include "chrome/browser/ui/startup/obsolete_os_info_bar.h" | 14 #include "chrome/browser/ui/startup/obsolete_os_info_bar.h" |
| 15 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 15 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 18 | 18 |
| 19 namespace chrome { | 19 namespace chrome { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 new ObsoleteOSInfoBar( | 53 new ObsoleteOSInfoBar( |
| 54 tab->infobar_tab_helper(), | 54 tab->infobar_tab_helper(), |
| 55 LocalizedObsoleteOSString(), | 55 LocalizedObsoleteOSString(), |
| 56 GURL(chrome::kMacLeopardObsoleteURL))); | 56 GURL(chrome::kMacLeopardObsoleteURL))); |
| 57 | 57 |
| 58 local_state->SetDouble(prefs::kMacLeopardObsoleteInfobarLastShown, | 58 local_state->SetDouble(prefs::kMacLeopardObsoleteInfobarLastShown, |
| 59 time_now.ToDoubleT()); | 59 time_now.ToDoubleT()); |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace chrome | 62 } // namespace chrome |
| OLD | NEW |