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

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

Issue 12886024: Move JSON schema validator code into its own directory in chrome/common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/policy/policy_loader_win_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 (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 <string> 7 #include <string>
8 8
9 #include <string.h> 9 #include <string.h>
10 10
11 #include <userenv.h> 11 #include <userenv.h>
12 12
13 // userenv.dll is required for RegisterGPNotification(). 13 // userenv.dll is required for RegisterGPNotification().
14 #pragma comment(lib, "userenv.lib") 14 #pragma comment(lib, "userenv.lib")
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/json/json_reader.h" 17 #include "base/json/json_reader.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/string16.h" 20 #include "base/string16.h"
21 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
22 #include "base/utf_string_conversions.h" 22 #include "base/utf_string_conversions.h"
23 #include "base/values.h" 23 #include "base/values.h"
24 #include "base/win/registry.h" 24 #include "base/win/registry.h"
25 #include "chrome/browser/policy/policy_bundle.h" 25 #include "chrome/browser/policy/policy_bundle.h"
26 #include "chrome/browser/policy/policy_map.h" 26 #include "chrome/browser/policy/policy_map.h"
27 #include "chrome/common/json_schema_constants.h" 27 #include "chrome/common/json_schema/json_schema_constants.h"
28 #include "policy/policy_constants.h" 28 #include "policy/policy_constants.h"
29 29
30 namespace schema = json_schema_constants; 30 namespace schema = json_schema_constants;
31 31
32 using base::win::RegKey; 32 using base::win::RegKey;
33 using base::win::RegistryKeyIterator; 33 using base::win::RegistryKeyIterator;
34 using base::win::RegistryValueIterator; 34 using base::win::RegistryValueIterator;
35 using namespace policy::registry_constants; 35 using namespace policy::registry_constants;
36 36
37 namespace policy { 37 namespace policy {
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 583
584 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { 584 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) {
585 DCHECK(object == user_policy_changed_event_.handle() || 585 DCHECK(object == user_policy_changed_event_.handle() ||
586 object == machine_policy_changed_event_.handle()) 586 object == machine_policy_changed_event_.handle())
587 << "unexpected object signaled policy reload, obj = " 587 << "unexpected object signaled policy reload, obj = "
588 << std::showbase << std::hex << object; 588 << std::showbase << std::hex << object;
589 Reload(false); 589 Reload(false);
590 } 590 }
591 591
592 } // namespace policy 592 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/policy_loader_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698