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

Side by Side Diff: chrome/browser/profiles/incognito_mode_policy_handler.cc

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct Created 7 years, 1 month 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 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 "chrome/browser/profiles/incognito_mode_policy_handler.h" 5 #include "chrome/browser/profiles/incognito_mode_policy_handler.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/prefs/pref_value_map.h" 8 #include "base/prefs/pref_value_map.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/policy/policy_error_map.h" 11 #include "chrome/browser/policy/policy_error_map.h"
12 #include "chrome/browser/policy/policy_map.h"
13 #include "chrome/browser/prefs/incognito_mode_prefs.h" 12 #include "chrome/browser/prefs/incognito_mode_prefs.h"
14 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "components/policy/core/common/policy_map.h"
15 #include "grit/generated_resources.h" 15 #include "grit/generated_resources.h"
16 #include "policy/policy_constants.h" 16 #include "policy/policy_constants.h"
17 17
18 namespace policy { 18 namespace policy {
19 19
20 IncognitoModePolicyHandler::IncognitoModePolicyHandler() {} 20 IncognitoModePolicyHandler::IncognitoModePolicyHandler() {}
21 21
22 IncognitoModePolicyHandler::~IncognitoModePolicyHandler() {} 22 IncognitoModePolicyHandler::~IncognitoModePolicyHandler() {}
23 23
24 bool IncognitoModePolicyHandler::CheckPolicySettings(const PolicyMap& policies, 24 bool IncognitoModePolicyHandler::CheckPolicySettings(const PolicyMap& policies,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 prefs->SetInteger( 82 prefs->SetInteger(
83 prefs::kIncognitoModeAvailability, 83 prefs::kIncognitoModeAvailability,
84 enabled ? IncognitoModePrefs::ENABLED : IncognitoModePrefs::DISABLED); 84 enabled ? IncognitoModePrefs::ENABLED : IncognitoModePrefs::DISABLED);
85 } else { 85 } else {
86 NOTREACHED(); 86 NOTREACHED();
87 } 87 }
88 } 88 }
89 } 89 }
90 90
91 } // namespace policy 91 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698