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

Unified Diff: trunk/src/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.cc

Issue 257763005: Revert 266094 "Add ScopedStubEnterpriseInstallAttributes for tes..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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 | « trunk/src/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.cc
===================================================================
--- trunk/src/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.cc (revision 266178)
+++ trunk/src/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.cc (working copy)
@@ -6,7 +6,6 @@
#include <string>
-#include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
namespace policy {
@@ -33,23 +32,4 @@
registration_mode_ = mode;
}
-ScopedStubEnterpriseInstallAttributes::ScopedStubEnterpriseInstallAttributes(
- const std::string& domain,
- const std::string& registration_user,
- const std::string& device_id,
- DeviceMode mode) {
- StubEnterpriseInstallAttributes* attributes =
- new StubEnterpriseInstallAttributes();
- attributes->SetDomain(domain);
- attributes->SetRegistrationUser(registration_user);
- attributes->SetDeviceId(device_id);
- attributes->SetMode(mode);
- BrowserPolicyConnectorChromeOS::SetInstallAttributesForTesting(attributes);
-}
-
-ScopedStubEnterpriseInstallAttributes::
-~ScopedStubEnterpriseInstallAttributes() {
- BrowserPolicyConnectorChromeOS::SetInstallAttributesForTesting(NULL);
-}
-
} // namespace policy
« no previous file with comments | « trunk/src/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698