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/system/statistics_provider.h" | 5 #include "chrome/browser/chromeos/system/statistics_provider.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/chromeos/chromeos_version.h" | 8 #include "base/chromeos/chromeos_version.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 const CommandLine* command_line = CommandLine::ForCurrentProcess(); | 286 const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
287 if (command_line->HasSwitch(chromeos::switches::kChromeOSReleaseBoard)) { | 287 if (command_line->HasSwitch(chromeos::switches::kChromeOSReleaseBoard)) { |
288 *result = command_line-> | 288 *result = command_line-> |
289 GetSwitchValueASCII(chromeos::switches::kChromeOSReleaseBoard); | 289 GetSwitchValueASCII(chromeos::switches::kChromeOSReleaseBoard); |
290 return true; | 290 return true; |
291 } | 291 } |
292 } | 292 } |
293 return false; | 293 return false; |
294 } | 294 } |
295 | 295 |
296 virtual void LoadOemManifest() { | 296 virtual void LoadOemManifest() OVERRIDE { |
297 CommandLine* command_line = CommandLine::ForCurrentProcess(); | 297 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
298 if (!command_line->HasSwitch(switches::kAppOemManifestFile)) | 298 if (!command_line->HasSwitch(switches::kAppOemManifestFile)) |
299 return; | 299 return; |
300 | 300 |
301 LoadOemManifestFromFile( | 301 LoadOemManifestFromFile( |
302 command_line->GetSwitchValuePath(switches::kAppOemManifestFile)); | 302 command_line->GetSwitchValuePath(switches::kAppOemManifestFile)); |
303 } | 303 } |
304 | 304 |
305 static StatisticsProviderStubImpl* GetInstance() { | 305 static StatisticsProviderStubImpl* GetInstance() { |
306 return Singleton<StatisticsProviderStubImpl, | 306 return Singleton<StatisticsProviderStubImpl, |
(...skipping 12 matching lines...) Expand all Loading... |
319 StatisticsProvider* StatisticsProvider::GetInstance() { | 319 StatisticsProvider* StatisticsProvider::GetInstance() { |
320 if (base::chromeos::IsRunningOnChromeOS()) { | 320 if (base::chromeos::IsRunningOnChromeOS()) { |
321 return StatisticsProviderImpl::GetInstance(); | 321 return StatisticsProviderImpl::GetInstance(); |
322 } else { | 322 } else { |
323 return StatisticsProviderStubImpl::GetInstance(); | 323 return StatisticsProviderStubImpl::GetInstance(); |
324 } | 324 } |
325 } | 325 } |
326 | 326 |
327 } // namespace system | 327 } // namespace system |
328 } // namespace chromeos | 328 } // namespace chromeos |
OLD | NEW |