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

Side by Side Diff: components/metrics/metrics_service.h

Issue 866163002: Allow use of metrics url override outside of Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « components/components_tests.gyp ('k') | components/metrics/metrics_service.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file defines a service that collects information about the user 5 // This file defines a service that collects information about the user
6 // experience in order to help improve future versions of the app. 6 // experience in order to help improve future versions of the app.
7 7
8 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_H_ 8 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_H_
9 #define COMPONENTS_METRICS_METRICS_SERVICE_H_ 9 #define COMPONENTS_METRICS_METRICS_SERVICE_H_
10 10
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 static ExecutionPhase execution_phase_; 478 static ExecutionPhase execution_phase_;
479 479
480 // Reduntant marker to check that we completed our shutdown, and set the 480 // Reduntant marker to check that we completed our shutdown, and set the
481 // exited-cleanly bit in the prefs. 481 // exited-cleanly bit in the prefs.
482 static ShutdownCleanliness clean_shutdown_status_; 482 static ShutdownCleanliness clean_shutdown_status_;
483 483
484 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); 484 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess);
485 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, 485 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest,
486 PermutedEntropyCacheClearedWhenLowEntropyReset); 486 PermutedEntropyCacheClearedWhenLowEntropyReset);
487 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); 487 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial);
488 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, ServerUrlOverrideSet);
488 489
489 // Weak pointers factory used to post task on different threads. All weak 490 // Weak pointers factory used to post task on different threads. All weak
490 // pointers managed by this factory have the same lifetime as MetricsService. 491 // pointers managed by this factory have the same lifetime as MetricsService.
491 base::WeakPtrFactory<MetricsService> self_ptr_factory_; 492 base::WeakPtrFactory<MetricsService> self_ptr_factory_;
492 493
493 // Weak pointers factory used for saving state. All weak pointers managed by 494 // Weak pointers factory used for saving state. All weak pointers managed by
494 // this factory are invalidated in ScheduleNextStateSave. 495 // this factory are invalidated in ScheduleNextStateSave.
495 base::WeakPtrFactory<MetricsService> state_saver_factory_; 496 base::WeakPtrFactory<MetricsService> state_saver_factory_;
496 497
497 DISALLOW_COPY_AND_ASSIGN(MetricsService); 498 DISALLOW_COPY_AND_ASSIGN(MetricsService);
498 }; 499 };
499 500
500 } // namespace metrics 501 } // namespace metrics
501 502
502 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_ 503 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698