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

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

Issue 23097007: Create variations target that depends on base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 #include "chrome/browser/prefs/scoped_user_pref_update.h" 189 #include "chrome/browser/prefs/scoped_user_pref_update.h"
190 #include "chrome/browser/profiles/profile.h" 190 #include "chrome/browser/profiles/profile.h"
191 #include "chrome/browser/ui/browser_list.h" 191 #include "chrome/browser/ui/browser_list.h"
192 #include "chrome/browser/ui/browser_otr_state.h" 192 #include "chrome/browser/ui/browser_otr_state.h"
193 #include "chrome/browser/ui/search/search_tab_helper.h" 193 #include "chrome/browser/ui/search/search_tab_helper.h"
194 #include "chrome/common/child_process_logging.h" 194 #include "chrome/common/child_process_logging.h"
195 #include "chrome/common/chrome_constants.h" 195 #include "chrome/common/chrome_constants.h"
196 #include "chrome/common/chrome_result_codes.h" 196 #include "chrome/common/chrome_result_codes.h"
197 #include "chrome/common/chrome_switches.h" 197 #include "chrome/common/chrome_switches.h"
198 #include "chrome/common/metrics/caching_permuted_entropy_provider.h" 198 #include "chrome/common/metrics/caching_permuted_entropy_provider.h"
199 #include "chrome/common/metrics/entropy_provider.h"
200 #include "chrome/common/metrics/metrics_log_manager.h" 199 #include "chrome/common/metrics/metrics_log_manager.h"
201 #include "chrome/common/net/test_server_locations.h" 200 #include "chrome/common/net/test_server_locations.h"
202 #include "chrome/common/pref_names.h" 201 #include "chrome/common/pref_names.h"
203 #include "chrome/common/render_messages.h" 202 #include "chrome/common/render_messages.h"
203 #include "components/variations/entropy_provider.h"
204 #include "content/public/browser/child_process_data.h" 204 #include "content/public/browser/child_process_data.h"
205 #include "content/public/browser/histogram_fetcher.h" 205 #include "content/public/browser/histogram_fetcher.h"
206 #include "content/public/browser/load_notification_details.h" 206 #include "content/public/browser/load_notification_details.h"
207 #include "content/public/browser/notification_service.h" 207 #include "content/public/browser/notification_service.h"
208 #include "content/public/browser/plugin_service.h" 208 #include "content/public/browser/plugin_service.h"
209 #include "content/public/browser/render_process_host.h" 209 #include "content/public/browser/render_process_host.h"
210 #include "content/public/browser/user_metrics.h" 210 #include "content/public/browser/user_metrics.h"
211 #include "content/public/browser/web_contents.h" 211 #include "content/public/browser/web_contents.h"
212 #include "content/public/common/process_type.h" 212 #include "content/public/common/process_type.h"
213 #include "content/public/common/webplugininfo.h" 213 #include "content/public/common/webplugininfo.h"
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 if (local_state) { 1779 if (local_state) {
1780 const PrefService::Preference* uma_pref = 1780 const PrefService::Preference* uma_pref =
1781 local_state->FindPreference(prefs::kMetricsReportingEnabled); 1781 local_state->FindPreference(prefs::kMetricsReportingEnabled);
1782 if (uma_pref) { 1782 if (uma_pref) {
1783 bool success = uma_pref->GetValue()->GetAsBoolean(&result); 1783 bool success = uma_pref->GetValue()->GetAsBoolean(&result);
1784 DCHECK(success); 1784 DCHECK(success);
1785 } 1785 }
1786 } 1786 }
1787 return result; 1787 return result;
1788 } 1788 }
OLDNEW
« no previous file with comments | « chrome/browser/history/most_visited_tiles_experiment_unittest.cc ('k') | chrome/browser/metrics/proto/study.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698