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

Unified Diff: chrome/browser/chromeos/arc/arc_policy_bridge.h

Issue 1923363002: Make GetPolicies() return null for unmanaged users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | chrome/browser/chromeos/arc/arc_policy_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_policy_bridge.h
diff --git a/chrome/browser/chromeos/arc/arc_policy_bridge.h b/chrome/browser/chromeos/arc/arc_policy_bridge.h
index 4464bb2562f27d9c3d21be6e8062e78e7a2638de..caf04f2499121470230f2c8b531925d53e5f1ebc 100644
--- a/chrome/browser/chromeos/arc/arc_policy_bridge.h
+++ b/chrome/browser/chromeos/arc/arc_policy_bridge.h
@@ -27,6 +27,8 @@ class ArcPolicyBridge : public ArcService,
policy::PolicyService* policy_service);
~ArcPolicyBridge() override;
+ void OverrideIsManagedForTesting(bool is_managed);
+
// ArcBridgeService::Observer overrides.
void OnPolicyInstanceReady() override;
void OnPolicyInstanceClosed() override;
@@ -44,6 +46,7 @@ class ArcPolicyBridge : public ArcService,
mojo::Binding<PolicyHost> binding_;
policy::PolicyService* policy_service_ = nullptr;
+ bool is_managed_ = false;
DISALLOW_COPY_AND_ASSIGN(ArcPolicyBridge);
};
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_policy_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698