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

Side by Side Diff: components/policy/core/browser/configuration_policy_handler.cc

Issue 197013007: Set drive as the default download folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version 1 Created 6 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
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 "components/policy/core/browser/configuration_policy_handler.h" 5 #include "components/policy/core/browser/configuration_policy_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 30 matching lines...) Expand all
41 41
42 ConfigurationPolicyHandler::ConfigurationPolicyHandler() { 42 ConfigurationPolicyHandler::ConfigurationPolicyHandler() {
43 } 43 }
44 44
45 ConfigurationPolicyHandler::~ConfigurationPolicyHandler() { 45 ConfigurationPolicyHandler::~ConfigurationPolicyHandler() {
46 } 46 }
47 47
48 void ConfigurationPolicyHandler::PrepareForDisplaying( 48 void ConfigurationPolicyHandler::PrepareForDisplaying(
49 PolicyMap* policies) const {} 49 PolicyMap* policies) const {}
50 50
51 void ConfigurationPolicyHandler::ApplyPolicySettingsWithPars(
52 const PolicyMap& policies,
53 const PolicyHandlerParameters& pars,
54 PrefValueMap* prefs) {
55 ApplyPolicySettings(policies, prefs);
56 }
51 57
52 // TypeCheckingPolicyHandler implementation ------------------------------------ 58 // TypeCheckingPolicyHandler implementation ------------------------------------
53 59
54 TypeCheckingPolicyHandler::TypeCheckingPolicyHandler( 60 TypeCheckingPolicyHandler::TypeCheckingPolicyHandler(
55 const char* policy_name, 61 const char* policy_name,
56 base::Value::Type value_type) 62 base::Value::Type value_type)
57 : policy_name_(policy_name), 63 : policy_name_(policy_name),
58 value_type_(value_type) { 64 value_type_(value_type) {
59 } 65 }
60 66
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 for (handler = legacy_policy_handlers_.begin(); 410 for (handler = legacy_policy_handlers_.begin();
405 handler != legacy_policy_handlers_.end(); 411 handler != legacy_policy_handlers_.end();
406 ++handler) { 412 ++handler) {
407 if ((*handler)->CheckPolicySettings(policies, &scoped_errors)) 413 if ((*handler)->CheckPolicySettings(policies, &scoped_errors))
408 (*handler)->ApplyPolicySettings(policies, prefs); 414 (*handler)->ApplyPolicySettings(policies, prefs);
409 } 415 }
410 } 416 }
411 } 417 }
412 418
413 } // namespace policy 419 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698