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

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

Issue 1847063004: Remove "#pragma comment(lib" in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 <lm.h> // For limits. 8 #include <lm.h> // For limits.
9 #include <ntdsapi.h> // For Ds[Un]Bind 9 #include <ntdsapi.h> // For Ds[Un]Bind
10 #include <rpc.h> // For struct GUID 10 #include <rpc.h> // For struct GUID
11 #include <shlwapi.h> // For PathIsUNC() 11 #include <shlwapi.h> // For PathIsUNC()
12 #include <stddef.h> 12 #include <stddef.h>
13 #include <userenv.h> // For GPO functions 13 #include <userenv.h> // For GPO functions
14 14
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 // shlwapi.dll is required for PathIsUNC().
19 #pragma comment(lib, "shlwapi.lib")
20 // userenv.dll is required for various GPO functions.
21 #pragma comment(lib, "userenv.lib")
22 // ntdsapi.dll is required for Ds[Un]Bind calls.
23 #pragma comment(lib, "ntdsapi.lib")
24
25 #include "base/bind.h" 18 #include "base/bind.h"
26 #include "base/files/file_util.h" 19 #include "base/files/file_util.h"
27 #include "base/json/json_reader.h" 20 #include "base/json/json_reader.h"
28 #include "base/json/json_writer.h" 21 #include "base/json/json_writer.h"
29 #include "base/lazy_instance.h" 22 #include "base/lazy_instance.h"
30 #include "base/logging.h" 23 #include "base/logging.h"
31 #include "base/macros.h" 24 #include "base/macros.h"
32 #include "base/memory/scoped_ptr.h" 25 #include "base/memory/scoped_ptr.h"
33 #include "base/metrics/histogram.h" 26 #include "base/metrics/histogram.h"
34 #include "base/metrics/sparse_histogram.h" 27 #include "base/metrics/sparse_histogram.h"
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 684
692 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { 685 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) {
693 DCHECK(object == user_policy_changed_event_.handle() || 686 DCHECK(object == user_policy_changed_event_.handle() ||
694 object == machine_policy_changed_event_.handle()) 687 object == machine_policy_changed_event_.handle())
695 << "unexpected object signaled policy reload, obj = " 688 << "unexpected object signaled policy reload, obj = "
696 << std::showbase << std::hex << object; 689 << std::showbase << std::hex << object;
697 Reload(false); 690 Reload(false);
698 } 691 }
699 692
700 } // namespace policy 693 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698