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

Side by Side Diff: chromeos/system/statistics_provider.cc

Issue 385993004: Clean up Chrome OS WARNING spam (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, profile_io_data feedback Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/system/name_value_pairs_parser.cc ('k') | chromeos/tpm_token_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chromeos/system/statistics_provider.h" 5 #include "chromeos/system/statistics_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 23 matching lines...) Expand all
34 const char kCrosSystemEq[] = "="; 34 const char kCrosSystemEq[] = "=";
35 const char kCrosSystemDelim[] = "\n"; 35 const char kCrosSystemDelim[] = "\n";
36 const char kCrosSystemCommentDelim[] = "#"; 36 const char kCrosSystemCommentDelim[] = "#";
37 const char kCrosSystemUnknownValue[] = "(error)"; 37 const char kCrosSystemUnknownValue[] = "(error)";
38 38
39 const char kHardwareClassCrosSystemKey[] = "hwid"; 39 const char kHardwareClassCrosSystemKey[] = "hwid";
40 const char kUnknownHardwareClass[] = "unknown"; 40 const char kUnknownHardwareClass[] = "unknown";
41 const char kSerialNumber[] = "sn"; 41 const char kSerialNumber[] = "sn";
42 42
43 // File to get machine hardware info from, and key/value delimiters of 43 // File to get machine hardware info from, and key/value delimiters of
44 // the file. 44 // the file. machine-info is generated only for OOBE and enterprise enrollment
45 // /tmp/machine-info is generated by platform/init/chromeos_startup. 45 // and may not be present. See login-manager/init/machine-info.conf.
46 const char kMachineHardwareInfoFile[] = "/tmp/machine-info"; 46 const char kMachineHardwareInfoFile[] = "/tmp/machine-info";
47 const char kMachineHardwareInfoEq[] = "="; 47 const char kMachineHardwareInfoEq[] = "=";
48 const char kMachineHardwareInfoDelim[] = " \n"; 48 const char kMachineHardwareInfoDelim[] = " \n";
49 49
50 // File to get ECHO coupon info from, and key/value delimiters of 50 // File to get ECHO coupon info from, and key/value delimiters of
51 // the file. 51 // the file.
52 const char kEchoCouponFile[] = "/var/cache/echo/vpd_echo.txt"; 52 const char kEchoCouponFile[] = "/var/cache/echo/vpd_echo.txt";
53 const char kEchoCouponEq[] = "="; 53 const char kEchoCouponEq[] = "=";
54 const char kEchoCouponDelim[] = "\n"; 54 const char kEchoCouponDelim[] = "\n";
55 55
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 return StatisticsProviderImpl::GetInstance(); 323 return StatisticsProviderImpl::GetInstance();
324 } 324 }
325 325
326 // static 326 // static
327 void StatisticsProvider::SetTestProvider(StatisticsProvider* test_provider) { 327 void StatisticsProvider::SetTestProvider(StatisticsProvider* test_provider) {
328 g_test_statistics_provider = test_provider; 328 g_test_statistics_provider = test_provider;
329 } 329 }
330 330
331 } // namespace system 331 } // namespace system
332 } // namespace chromeos 332 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/system/name_value_pairs_parser.cc ('k') | chromeos/tpm_token_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698