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

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

Issue 10697097: Add a policy to disable mounting of external storage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT. Created 8 years, 5 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/configuration_policy_handler_list.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/policy/configuration_policy_handler.h" 9 #include "chrome/browser/policy/configuration_policy_handler.h"
10 #include "chrome/browser/policy/policy_error_map.h" 10 #include "chrome/browser/policy/policy_error_map.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 Value::TYPE_BOOLEAN }, 298 Value::TYPE_BOOLEAN },
299 { key::kChromeOsReleaseChannel, 299 { key::kChromeOsReleaseChannel,
300 prefs::kChromeOsReleaseChannel, 300 prefs::kChromeOsReleaseChannel,
301 Value::TYPE_STRING }, 301 Value::TYPE_STRING },
302 { key::kGDataDisabled, 302 { key::kGDataDisabled,
303 prefs::kDisableGData, 303 prefs::kDisableGData,
304 Value::TYPE_BOOLEAN }, 304 Value::TYPE_BOOLEAN },
305 { key::kGDataDisabledOverCellular, 305 { key::kGDataDisabledOverCellular,
306 prefs::kDisableGDataOverCellular, 306 prefs::kDisableGDataOverCellular,
307 Value::TYPE_BOOLEAN }, 307 Value::TYPE_BOOLEAN },
308 { key::kExternalStorageDisabled,
309 prefs::kExternalStorageDisabled,
310 Value::TYPE_BOOLEAN },
308 #endif // defined(OS_CHROMEOS) 311 #endif // defined(OS_CHROMEOS)
309 312
310 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 313 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
311 { key::kBackgroundModeEnabled, 314 { key::kBackgroundModeEnabled,
312 prefs::kBackgroundModeEnabled, 315 prefs::kBackgroundModeEnabled,
313 Value::TYPE_BOOLEAN }, 316 Value::TYPE_BOOLEAN },
314 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 317 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
315 }; 318 };
316 319
317 } // namespace 320 } // namespace
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 } 395 }
393 396
394 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 397 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
395 PolicyMap* policies) const { 398 PolicyMap* policies) const {
396 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 399 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
397 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 400 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
398 (*handler)->PrepareForDisplaying(policies); 401 (*handler)->PrepareForDisplaying(policies);
399 } 402 }
400 403
401 } // namespace policy 404 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/browser/policy/configuration_policy_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698