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

Unified Diff: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc

Issue 189163006: Remove --disable-local-accounts flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/settings/device_settings_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc b/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
index 6d473c2abfa65ecb9d34cedd867e47465c5f3243..0b31559bbb6c8a7fc97635f8758598fbf1e385af 100644
--- a/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
+++ b/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
-#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/message_loop/message_loop_proxy.h"
@@ -126,21 +125,18 @@ void BrowserPolicyConnectorChromeOS::Init(
local_state, device_management_service(), status_provider.Pass());
}
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (!command_line->HasSwitch(chromeos::switches::kDisableLocalAccounts)) {
- device_local_account_policy_service_.reset(
- new DeviceLocalAccountPolicyService(
- chromeos::DBusThreadManager::Get()->GetSessionManagerClient(),
- chromeos::DeviceSettingsService::Get(),
- chromeos::CrosSettings::Get(),
- GetBackgroundTaskRunner(),
- GetBackgroundTaskRunner(),
- GetBackgroundTaskRunner(),
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::IO),
- request_context));
- device_local_account_policy_service_->Connect(device_management_service());
- }
+ device_local_account_policy_service_.reset(
+ new DeviceLocalAccountPolicyService(
+ chromeos::DBusThreadManager::Get()->GetSessionManagerClient(),
+ chromeos::DeviceSettingsService::Get(),
+ chromeos::CrosSettings::Get(),
+ GetBackgroundTaskRunner(),
+ GetBackgroundTaskRunner(),
+ GetBackgroundTaskRunner(),
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::IO),
+ request_context));
+ device_local_account_policy_service_->Connect(device_management_service());
// request_context is NULL in unit tests.
if (request_context && install_attributes_) {
« no previous file with comments | « no previous file | chrome/browser/chromeos/settings/device_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698