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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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"
9 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
10 #include "base/values.h" 9 #include "base/values.h"
11 #include "chrome/browser/prefs/incognito_mode_prefs.h" 10 #include "chrome/browser/prefs/incognito_mode_prefs.h"
12 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
13 #include "components/policy/core/browser/policy_error_map.h" 12 #include "components/policy/core/browser/policy_error_map.h"
14 #include "components/policy/core/common/policy_map.h" 13 #include "components/policy/core/common/policy_map.h"
14 #include "components/prefs/pref_value_map.h"
15 #include "grit/components_strings.h" 15 #include "grit/components_strings.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
« no previous file with comments | « chrome/browser/profiles/host_zoom_map_browsertest.cc ('k') | chrome/browser/profiles/off_the_record_profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698