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

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

Issue 10823208: Reverting this as it causes browser tests on the Linux ChromiumOS builder to fail. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.cc ('k') | chrome/browser/policy/cloud_policy_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud_policy_client.cc
===================================================================
--- chrome/browser/policy/cloud_policy_client.cc (revision 150390)
+++ chrome/browser/policy/cloud_policy_client.cc (working copy)
@@ -31,10 +31,9 @@
submit_machine_id_(false),
public_key_version_(-1),
public_key_version_valid_(false),
- service_(service), // Can be NULL for unit tests.
- status_provider_(status_provider), // Can be NULL for unit tests.
- status_(DM_STATUS_SUCCESS) {
-}
+ service_(service),
+ status_provider_(status_provider),
+ status_(DM_STATUS_SUCCESS) {}
CloudPolicyClient::~CloudPolicyClient() {}
@@ -53,7 +52,6 @@
}
void CloudPolicyClient::Register(const std::string& auth_token) {
- DCHECK(service_);
DCHECK(!auth_token.empty());
DCHECK(!is_registered());
@@ -122,7 +120,6 @@
}
void CloudPolicyClient::Unregister() {
- DCHECK(service_);
request_job_.reset(
service_->CreateJob(DeviceManagementRequestJob::TYPE_UNREGISTRATION));
request_job_->SetDMToken(dm_token_);
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.cc ('k') | chrome/browser/policy/cloud_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698