-
hansberry authored
Create TetherService, a TetherAllowed pref, and use DependencyManager for RegisterProfilePrefs calls. TetherService dynamically starts and stops Tether when prefs::kTetherAllowed changes value (from policy changing). This is expected from policy settings in Chrome. Please see: https://sites.google.com/a/chromium.org/dev/developers/how-tos/enterprise/adding-new-policies. This CL also tweaks EasyUnlockServiceFactory and ChromeCryptAuthServiceFactory to call RegisterProfilePrefs on their respective services. These calls are automagically handled by DependencyManager: it ensures that the RegisterProfilePrefs calls are made in the correct order and only once per context. A subsequent CL will come after this one that actually creates the enterprise policy for Tether, and maps to prefs::kTetherAllowed. BUG=710174 Review-Url: https://codereview.chromium.org/2819713002 Cr-Commit-Position: refs/heads/master@{#466702}
8d01f3ac