// Creates a new sign-and-store operation.
SignAndStoreSettingsOperation(
const Callback& callback,
// Creates a new sign-and-store operation.
SignAndStoreSettingsOperation(
const Callback& callback,
// Builds the policy blob and signs it using the owner key.
static std::string AssembleAndSignPolicy(
// Builds the policy blob and signs it using the owner key.
static std::string AssembleAndSignPolicy(
- scoped_ptr<enterprise_management::ChromeDeviceSettingsProto> settings,
- const std::string& username,
+ scoped_ptr<enterprise_management::PolicyData> policy,
// Handles the result of the store operation and triggers the load.
void HandleStoreResult(bool success);
// Handles the result of the store operation and triggers the load.
void HandleStoreResult(bool success);
base::WeakPtrFactory<SignAndStoreSettingsOperation> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SignAndStoreSettingsOperation);
};
base::WeakPtrFactory<SignAndStoreSettingsOperation> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SignAndStoreSettingsOperation);
};