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

Unified Diff: chrome/browser/policy/cloud_policy_provider.cc

Issue 10855244: Remove the --enable-device-policy and --enable-onc-policy flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comment Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/cloud_policy_provider.cc
diff --git a/chrome/browser/policy/cloud_policy_provider.cc b/chrome/browser/policy/cloud_policy_provider.cc
index e4af5cede8d78a2f9a45a8798167f205f5de1ef8..f921b8a1e5ab1292f45bdb06df1799c50bdfd2cd 100644
--- a/chrome/browser/policy/cloud_policy_provider.cc
+++ b/chrome/browser/policy/cloud_policy_provider.cc
@@ -4,12 +4,10 @@
#include "chrome/browser/policy/cloud_policy_provider.h"
-#include "base/command_line.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/policy/policy_bundle.h"
#include "chrome/browser/policy/policy_map.h"
-#include "chrome/common/chrome_switches.h"
namespace policy {
@@ -85,14 +83,6 @@ void CloudPolicyProvider::Merge() {
if (!initialization_complete_) {
initialization_complete_ = true;
for (size_t i = 0; i < CACHE_SIZE; ++i) {
-#if defined(OS_CHROMEOS)
- // Ignore the device policy cache if device policy is not enabled.
- if (i == CACHE_DEVICE &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableDevicePolicy)) {
- continue;
- }
-#endif
if (caches_[i] == NULL || !caches_[i]->IsReady()) {
initialization_complete_ = false;
break;

Powered by Google App Engine
This is Rietveld 408576698