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

Unified Diff: chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc

Issue 26512003: Removed --disable-cloud-policy-on-signin flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/policy/cloud/user_policy_signin_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc
diff --git a/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc b/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc
index 844bb35bd5b2037be635f3f2fef89fdaa50321cc..0fb04562b4bdb15148b1af10630bdb48709e5fa4 100644
--- a/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc
+++ b/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h"
-#include "base/command_line.h"
#include "base/logging.h"
#include "base/message_loop/message_loop_proxy.h"
#include "chrome/browser/policy/cloud/cloud_external_data_manager.h"
@@ -12,7 +11,6 @@
#include "chrome/browser/policy/cloud/user_cloud_policy_store.h"
#include "chrome/browser/profiles/profile.h"
#include "components/browser_context_keyed_service/browser_context_dependency_manager.h"
-#include "components/policy/core/common/policy_switches.h"
namespace policy {
@@ -53,10 +51,6 @@ scoped_ptr<UserCloudPolicyManager>
UserCloudPolicyManagerFactory::CreateManagerForProfile(
Profile* profile,
bool force_immediate_load) {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableCloudPolicyOnSignin)) {
- return scoped_ptr<UserCloudPolicyManager>();
- }
scoped_ptr<UserCloudPolicyStore> store(UserCloudPolicyStore::Create(profile));
if (force_immediate_load)
store->LoadImmediately();
« no previous file with comments | « no previous file | chrome/browser/policy/cloud/user_policy_signin_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698