Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: chrome/browser/chromeos/login/version_info_updater.cc

Issue 10103029: Add device location reporting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Nits addressed. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/device_settings_provider.cc ('k') | chrome/browser/chromeos/stub_cros_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698