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

Side by Side Diff: chromeos/system/statistics_provider.cc

Issue 2056493002: clang-tidy WaitableEvent refactor (ChromeOS side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « chromeos/dbus/blocking_method_caller.cc ('k') | components/exo/wayland/server_unittest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chromeos/system/statistics_provider.h" 5 #include "chromeos/system/statistics_provider.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 *result = iter->second; 370 *result = iter->second;
371 return true; 371 return true;
372 } 372 }
373 373
374 void StatisticsProviderImpl::Shutdown() { 374 void StatisticsProviderImpl::Shutdown() {
375 cancellation_flag_.Set(); // Cancel any pending loads 375 cancellation_flag_.Set(); // Cancel any pending loads
376 } 376 }
377 377
378 StatisticsProviderImpl::StatisticsProviderImpl() 378 StatisticsProviderImpl::StatisticsProviderImpl()
379 : load_statistics_started_(false), 379 : load_statistics_started_(false),
380 on_statistics_loaded_(true /* manual_reset */, 380 on_statistics_loaded_(base::WaitableEvent::ResetPolicy::MANUAL,
381 false /* initially_signaled */), 381 base::WaitableEvent::InitialState::NOT_SIGNALED),
382 oem_manifest_loaded_(false) { 382 oem_manifest_loaded_(false) {
383 regional_data_extractors_[kInitialLocaleKey] = 383 regional_data_extractors_[kInitialLocaleKey] =
384 &GetInitialLocaleFromRegionalData; 384 &GetInitialLocaleFromRegionalData;
385 regional_data_extractors_[kKeyboardLayoutKey] = 385 regional_data_extractors_[kKeyboardLayoutKey] =
386 &GetKeyboardLayoutFromRegionalData; 386 &GetKeyboardLayoutFromRegionalData;
387 regional_data_extractors_[kInitialTimezoneKey] = 387 regional_data_extractors_[kInitialTimezoneKey] =
388 &GetInitialTimezoneFromRegionalData; 388 &GetInitialTimezoneFromRegionalData;
389 } 389 }
390 390
391 StatisticsProviderImpl::~StatisticsProviderImpl() { 391 StatisticsProviderImpl::~StatisticsProviderImpl() {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 return StatisticsProviderImpl::GetInstance(); 571 return StatisticsProviderImpl::GetInstance();
572 } 572 }
573 573
574 // static 574 // static
575 void StatisticsProvider::SetTestProvider(StatisticsProvider* test_provider) { 575 void StatisticsProvider::SetTestProvider(StatisticsProvider* test_provider) {
576 g_test_statistics_provider = test_provider; 576 g_test_statistics_provider = test_provider;
577 } 577 }
578 578
579 } // namespace system 579 } // namespace system
580 } // namespace chromeos 580 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/blocking_method_caller.cc ('k') | components/exo/wayland/server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698