| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/task.h" | |
| 14 #include "base/time.h" | 13 #include "base/time.h" |
| 15 #include "chrome/browser/chromeos/system/name_value_pairs_parser.h" | 14 #include "chrome/browser/chromeos/system/name_value_pairs_parser.h" |
| 16 #include "chrome/browser/chromeos/system/runtime_environment.h" | 15 #include "chrome/browser/chromeos/system/runtime_environment.h" |
| 17 #include "chrome/common/chrome_version_info.h" | 16 #include "chrome/common/chrome_version_info.h" |
| 18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 19 | 18 |
| 20 using content::BrowserThread; | 19 using content::BrowserThread; |
| 21 | 20 |
| 22 namespace chromeos { | 21 namespace chromeos { |
| 23 namespace system { | 22 namespace system { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 StatisticsProvider* StatisticsProvider::GetInstance() { | 188 StatisticsProvider* StatisticsProvider::GetInstance() { |
| 190 if (system::runtime_environment::IsRunningOnChromeOS()) { | 189 if (system::runtime_environment::IsRunningOnChromeOS()) { |
| 191 return StatisticsProviderImpl::GetInstance(); | 190 return StatisticsProviderImpl::GetInstance(); |
| 192 } else { | 191 } else { |
| 193 return StatisticsProviderStubImpl::GetInstance(); | 192 return StatisticsProviderStubImpl::GetInstance(); |
| 194 } | 193 } |
| 195 } | 194 } |
| 196 | 195 |
| 197 } // namespace system | 196 } // namespace system |
| 198 } // namespace chromeos | 197 } // namespace chromeos |
| OLD | NEW |