OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/upgrade_detector.h" | 5 #include "chrome/browser/upgrade_detector.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_version_info.h" | 10 #include "base/file_version_info.h" |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "base/task.h" | 13 #include "base/task.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "base/version.h" | |
17 #include "chrome/browser/chrome_thread.h" | 16 #include "chrome/browser/chrome_thread.h" |
18 #include "chrome/browser/pref_service.h" | 17 #include "chrome/browser/pref_service.h" |
19 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
20 #include "chrome/common/chrome_version_info.h" | 19 #include "chrome/common/chrome_version_info.h" |
21 #include "chrome/common/notification_service.h" | 20 #include "chrome/common/notification_service.h" |
22 #include "chrome/common/notification_type.h" | 21 #include "chrome/common/notification_type.h" |
23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
24 #include "chrome/installer/util/browser_distribution.h" | 23 #include "chrome/installer/util/browser_distribution.h" |
25 | 24 |
26 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 184 } |
186 | 185 |
187 void UpgradeDetector::NotifyOnUpgrade() { | 186 void UpgradeDetector::NotifyOnUpgrade() { |
188 notify_upgrade_ = true; | 187 notify_upgrade_ = true; |
189 | 188 |
190 NotificationService::current()->Notify( | 189 NotificationService::current()->Notify( |
191 NotificationType::UPGRADE_RECOMMENDED, | 190 NotificationType::UPGRADE_RECOMMENDED, |
192 Source<UpgradeDetector>(this), | 191 Source<UpgradeDetector>(this), |
193 NotificationService::NoDetails()); | 192 NotificationService::NoDetails()); |
194 } | 193 } |
OLD | NEW |