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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 // Stores the time of the first call to |GetUptimes()|. 467 // Stores the time of the first call to |GetUptimes()|.
468 base::TimeTicks first_updated_time_; 468 base::TimeTicks first_updated_time_;
469 469
470 // Stores the time of the last call to |GetUptimes()|. 470 // Stores the time of the last call to |GetUptimes()|.
471 base::TimeTicks last_updated_time_; 471 base::TimeTicks last_updated_time_;
472 472
473 // Field trial groups that map to Chrome configuration states. 473 // Field trial groups that map to Chrome configuration states.
474 SyntheticTrialGroups synthetic_trial_groups_; 474 SyntheticTrialGroups synthetic_trial_groups_;
475 475
476 // List of observers of |synthetic_trial_groups_| changes. 476 // List of observers of |synthetic_trial_groups_| changes.
477 ObserverList<SyntheticTrialObserver> synthetic_trial_observer_list_; 477 base::ObserverList<SyntheticTrialObserver> synthetic_trial_observer_list_;
478 478
479 // Execution phase the browser is in. 479 // Execution phase the browser is in.
480 static ExecutionPhase execution_phase_; 480 static ExecutionPhase execution_phase_;
481 481
482 // Reduntant marker to check that we completed our shutdown, and set the 482 // Reduntant marker to check that we completed our shutdown, and set the
483 // exited-cleanly bit in the prefs. 483 // exited-cleanly bit in the prefs.
484 static ShutdownCleanliness clean_shutdown_status_; 484 static ShutdownCleanliness clean_shutdown_status_;
485 485
486 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); 486 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess);
487 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, 487 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest,
488 PermutedEntropyCacheClearedWhenLowEntropyReset); 488 PermutedEntropyCacheClearedWhenLowEntropyReset);
489 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); 489 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial);
490 490
491 // Weak pointers factory used to post task on different threads. All weak 491 // Weak pointers factory used to post task on different threads. All weak
492 // pointers managed by this factory have the same lifetime as MetricsService. 492 // pointers managed by this factory have the same lifetime as MetricsService.
493 base::WeakPtrFactory<MetricsService> self_ptr_factory_; 493 base::WeakPtrFactory<MetricsService> self_ptr_factory_;
494 494
495 // Weak pointers factory used for saving state. All weak pointers managed by 495 // Weak pointers factory used for saving state. All weak pointers managed by
496 // this factory are invalidated in ScheduleNextStateSave. 496 // this factory are invalidated in ScheduleNextStateSave.
497 base::WeakPtrFactory<MetricsService> state_saver_factory_; 497 base::WeakPtrFactory<MetricsService> state_saver_factory_;
498 498
499 DISALLOW_COPY_AND_ASSIGN(MetricsService); 499 DISALLOW_COPY_AND_ASSIGN(MetricsService);
500 }; 500 };
501 501
502 } // namespace metrics 502 } // namespace metrics
503 503
504 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_ 504 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « components/invalidation/ticl_settings_provider.h ('k') | components/ownership/owner_settings_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698