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

Side by Side Diff: chrome/browser/chromeos/settings/session_manager_operation.cc

Issue 108563005: Move the cloud policy protobufs into the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/settings/session_manager_operation.h" 5 #include "chrome/browser/chromeos/settings/session_manager_operation.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "base/task_runner_util.h" 12 #include "base/task_runner_util.h"
13 #include "base/threading/sequenced_worker_pool.h" 13 #include "base/threading/sequenced_worker_pool.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
15 #include "chrome/browser/chromeos/settings/owner_key_util.h" 16 #include "chrome/browser/chromeos/settings/owner_key_util.h"
16 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h"
17 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 17 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
19 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
20 #include "crypto/rsa_private_key.h" 19 #include "crypto/rsa_private_key.h"
21 #include "crypto/signature_creator.h" 20 #include "crypto/signature_creator.h"
21 #include "policy/proto/device_management_backend.pb.h"
22 22
23 namespace em = enterprise_management; 23 namespace em = enterprise_management;
24 24
25 namespace chromeos { 25 namespace chromeos {
26 26
27 SessionManagerOperation::SessionManagerOperation(const Callback& callback) 27 SessionManagerOperation::SessionManagerOperation(const Callback& callback)
28 : session_manager_client_(NULL), 28 : session_manager_client_(NULL),
29 weak_factory_(this), 29 weak_factory_(this),
30 callback_(callback), 30 callback_(callback),
31 force_key_load_(false), 31 force_key_load_(false),
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 } 325 }
326 326
327 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) { 327 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) {
328 if (!success) 328 if (!success)
329 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); 329 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED);
330 else 330 else
331 StartLoading(); 331 StartLoading();
332 } 332 }
333 333
334 } // namespace chromeos 334 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698