| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |