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

Side by Side Diff: components/policy/core/common/policy_loader_win.cc

Issue 2373523003: Clean up sparse_histogram.h header (Closed)
Patch Set: Rebase update on Oct 18 Created 4 years, 2 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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "components/policy/core/common/policy_loader_win.h" 5 #include "components/policy/core/common/policy_loader_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <ntdsapi.h> // For Ds[Un]Bind 8 #include <ntdsapi.h> // For Ds[Un]Bind
9 #include <rpc.h> // For struct GUID 9 #include <rpc.h> // For struct GUID
10 #include <shlwapi.h> // For PathIsUNC() 10 #include <shlwapi.h> // For PathIsUNC()
11 #include <stddef.h> 11 #include <stddef.h>
12 #include <userenv.h> // For GPO functions 12 #include <userenv.h> // For GPO functions
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/bind.h" 18 #include "base/bind.h"
19 #include "base/files/file_util.h" 19 #include "base/files/file_util.h"
20 #include "base/json/json_reader.h" 20 #include "base/json/json_reader.h"
21 #include "base/json/json_writer.h" 21 #include "base/json/json_writer.h"
22 #include "base/lazy_instance.h" 22 #include "base/lazy_instance.h"
23 #include "base/logging.h" 23 #include "base/logging.h"
24 #include "base/macros.h" 24 #include "base/macros.h"
25 #include "base/memory/ptr_util.h" 25 #include "base/memory/ptr_util.h"
26 #include "base/metrics/histogram.h" 26 #include "base/metrics/histogram.h"
27 #include "base/metrics/sparse_histogram.h" 27 #include "base/metrics/histogram_macros.h"
28 #include "base/scoped_native_library.h" 28 #include "base/scoped_native_library.h"
29 #include "base/sequenced_task_runner.h" 29 #include "base/sequenced_task_runner.h"
30 #include "base/stl_util.h" 30 #include "base/stl_util.h"
31 #include "base/strings/string16.h" 31 #include "base/strings/string16.h"
32 #include "base/strings/string_util.h" 32 #include "base/strings/string_util.h"
33 #include "base/values.h" 33 #include "base/values.h"
34 #include "base/win/win_util.h" 34 #include "base/win/win_util.h"
35 #include "base/win/windows_version.h" 35 #include "base/win/windows_version.h"
36 #include "components/json_schema/json_schema_constants.h" 36 #include "components/json_schema/json_schema_constants.h"
37 #include "components/policy/core/common/policy_bundle.h" 37 #include "components/policy/core/common/policy_bundle.h"
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 606
607 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { 607 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) {
608 DCHECK(object == user_policy_changed_event_.handle() || 608 DCHECK(object == user_policy_changed_event_.handle() ||
609 object == machine_policy_changed_event_.handle()) 609 object == machine_policy_changed_event_.handle())
610 << "unexpected object signaled policy reload, obj = " 610 << "unexpected object signaled policy reload, obj = "
611 << std::showbase << std::hex << object; 611 << std::showbase << std::hex << object;
612 Reload(false); 612 Reload(false);
613 } 613 }
614 614
615 } // namespace policy 615 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698