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

Side by Side Diff: chrome/browser/policy/policy_loader_win.cc

Issue 16387014: Use a direct include of utf_string_conversions.h in chrome/browser/, part 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/policy/policy_loader_win.h" 5 #include "chrome/browser/policy/policy_loader_win.h"
6 6
7 #include <rpc.h> // For struct GUID 7 #include <rpc.h> // For struct GUID
8 #include <shlwapi.h> // For PathIsUNC() 8 #include <shlwapi.h> // For PathIsUNC()
9 #include <userenv.h> // For GPO functions 9 #include <userenv.h> // For GPO functions
10 #include <windows.h> 10 #include <windows.h>
11 11
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 // shlwapi.dll is required for PathIsUNC(). 15 // shlwapi.dll is required for PathIsUNC().
16 #pragma comment(lib, "shlwapi.lib") 16 #pragma comment(lib, "shlwapi.lib")
17 // userenv.dll is required for various GPO functions. 17 // userenv.dll is required for various GPO functions.
18 #pragma comment(lib, "userenv.lib") 18 #pragma comment(lib, "userenv.lib")
19 19
20 #include "base/basictypes.h" 20 #include "base/basictypes.h"
21 #include "base/file_util.h" 21 #include "base/file_util.h"
22 #include "base/json/json_reader.h" 22 #include "base/json/json_reader.h"
23 #include "base/lazy_instance.h" 23 #include "base/lazy_instance.h"
24 #include "base/logging.h" 24 #include "base/logging.h"
25 #include "base/scoped_native_library.h" 25 #include "base/scoped_native_library.h"
26 #include "base/stl_util.h" 26 #include "base/stl_util.h"
27 #include "base/string16.h" 27 #include "base/string16.h"
28 #include "base/string_util.h" 28 #include "base/string_util.h"
29 #include "base/strings/string_number_conversions.h" 29 #include "base/strings/string_number_conversions.h"
30 #include "base/strings/utf_string_conversions.h"
30 #include "base/sys_byteorder.h" 31 #include "base/sys_byteorder.h"
31 #include "base/utf_string_conversions.h"
32 #include "base/win/registry.h" 32 #include "base/win/registry.h"
33 #include "chrome/browser/policy/policy_bundle.h" 33 #include "chrome/browser/policy/policy_bundle.h"
34 #include "chrome/browser/policy/policy_load_status.h" 34 #include "chrome/browser/policy/policy_load_status.h"
35 #include "chrome/browser/policy/policy_map.h" 35 #include "chrome/browser/policy/policy_map.h"
36 #include "chrome/browser/policy/preg_parser_win.h" 36 #include "chrome/browser/policy/preg_parser_win.h"
37 #include "chrome/common/json_schema/json_schema_constants.h" 37 #include "chrome/common/json_schema/json_schema_constants.h"
38 #include "policy/policy_constants.h" 38 #include "policy/policy_constants.h"
39 39
40 namespace schema = json_schema_constants; 40 namespace schema = json_schema_constants;
41 41
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 770
771 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { 771 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) {
772 DCHECK(object == user_policy_changed_event_.handle() || 772 DCHECK(object == user_policy_changed_event_.handle() ||
773 object == machine_policy_changed_event_.handle()) 773 object == machine_policy_changed_event_.handle())
774 << "unexpected object signaled policy reload, obj = " 774 << "unexpected object signaled policy reload, obj = "
775 << std::showbase << std::hex << object; 775 << std::showbase << std::hex << object;
776 Reload(false); 776 Reload(false);
777 } 777 }
778 778
779 } // namespace policy 779 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_error_map.cc ('k') | chrome/browser/policy/policy_loader_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698