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

Side by Side Diff: chrome/browser/metrics/metrics_service.cc

Issue 25112004: Move statistics_provider to chromeos/system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments Created 7 years, 2 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
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 //------------------------------------------------------------------------------ 5 //------------------------------------------------------------------------------
6 // Description of the life cycle of a instance of MetricsService. 6 // Description of the life cycle of a instance of MetricsService.
7 // 7 //
8 // OVERVIEW 8 // OVERVIEW
9 // 9 //
10 // A MetricsService instance is typically created at application startup. It is 10 // A MetricsService instance is typically created at application startup. It is
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 #include "net/base/load_flags.h" 213 #include "net/base/load_flags.h"
214 #include "net/url_request/url_fetcher.h" 214 #include "net/url_request/url_fetcher.h"
215 215
216 // TODO(port): port browser_distribution.h. 216 // TODO(port): port browser_distribution.h.
217 #if !defined(OS_POSIX) 217 #if !defined(OS_POSIX)
218 #include "chrome/installer/util/browser_distribution.h" 218 #include "chrome/installer/util/browser_distribution.h"
219 #endif 219 #endif
220 220
221 #if defined(OS_CHROMEOS) 221 #if defined(OS_CHROMEOS)
222 #include "chrome/browser/chromeos/external_metrics.h" 222 #include "chrome/browser/chromeos/external_metrics.h"
223 #include "chrome/browser/chromeos/system/statistics_provider.h" 223 #include "chromeos/system/statistics_provider.h"
224 #endif 224 #endif
225 225
226 #if defined(OS_WIN) 226 #if defined(OS_WIN)
227 #include <windows.h> // Needed for STATUS_* codes 227 #include <windows.h> // Needed for STATUS_* codes
228 #include "base/win/registry.h" 228 #include "base/win/registry.h"
229 #endif 229 #endif
230 230
231 using base::Time; 231 using base::Time;
232 using content::BrowserThread; 232 using content::BrowserThread;
233 using content::ChildProcessData; 233 using content::ChildProcessData;
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1791 if (local_state) { 1791 if (local_state) {
1792 const PrefService::Preference* uma_pref = 1792 const PrefService::Preference* uma_pref =
1793 local_state->FindPreference(prefs::kMetricsReportingEnabled); 1793 local_state->FindPreference(prefs::kMetricsReportingEnabled);
1794 if (uma_pref) { 1794 if (uma_pref) {
1795 bool success = uma_pref->GetValue()->GetAsBoolean(&result); 1795 bool success = uma_pref->GetValue()->GetAsBoolean(&result);
1796 DCHECK(success); 1796 DCHECK(success);
1797 } 1797 }
1798 } 1798 }
1799 return result; 1799 return result;
1800 } 1800 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/statistics_provider.cc ('k') | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698