| 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/chromeos/login/version_info_updater.h" | 5 #include "chrome/browser/chromeos/login/version_info_updater.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "ui/base/resource/resource_bundle.h" | 31 #include "ui/base/resource/resource_bundle.h" |
| 32 | 32 |
| 33 namespace chromeos { | 33 namespace chromeos { |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| 37 const char* kReportingFlags[] = { | 37 const char* kReportingFlags[] = { |
| 38 chromeos::kReportDeviceVersionInfo, | 38 chromeos::kReportDeviceVersionInfo, |
| 39 chromeos::kReportDeviceActivityTimes, | 39 chromeos::kReportDeviceActivityTimes, |
| 40 chromeos::kReportDeviceBootMode, | 40 chromeos::kReportDeviceBootMode, |
| 41 chromeos::kReportDeviceLocation, |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } | 44 } |
| 44 | 45 |
| 45 /////////////////////////////////////////////////////////////////////////////// | 46 /////////////////////////////////////////////////////////////////////////////// |
| 46 // VersionInfoUpdater public: | 47 // VersionInfoUpdater public: |
| 47 | 48 |
| 48 VersionInfoUpdater::VersionInfoUpdater(Delegate* delegate) | 49 VersionInfoUpdater::VersionInfoUpdater(Delegate* delegate) |
| 49 : enterprise_reporting_hint_(false), | 50 : enterprise_reporting_hint_(false), |
| 50 cros_settings_(chromeos::CrosSettings::Get()), | 51 cros_settings_(chromeos::CrosSettings::Get()), |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 int type, | 252 int type, |
| 252 const content::NotificationSource& source, | 253 const content::NotificationSource& source, |
| 253 const content::NotificationDetails& details) { | 254 const content::NotificationDetails& details) { |
| 254 if (type == chrome::NOTIFICATION_SYSTEM_SETTING_CHANGED) | 255 if (type == chrome::NOTIFICATION_SYSTEM_SETTING_CHANGED) |
| 255 UpdateEnterpriseInfo(); | 256 UpdateEnterpriseInfo(); |
| 256 else | 257 else |
| 257 NOTREACHED(); | 258 NOTREACHED(); |
| 258 } | 259 } |
| 259 | 260 |
| 260 } // namespace chromeos | 261 } // namespace chromeos |
| OLD | NEW |