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

Side by Side Diff: chrome/browser/chromeos/policy/user_policy_token_loader.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/policy/user_policy_token_loader.h" 5 #include "chrome/browser/chromeos/policy/user_policy_token_loader.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
13 #include "chrome/browser/policy/proto/cloud/device_management_local.pb.h"
14 #include "components/policy/core/common/cloud/enterprise_metrics.h" 13 #include "components/policy/core/common/cloud/enterprise_metrics.h"
14 #include "policy/proto/device_management_local.pb.h"
15 15
16 namespace policy { 16 namespace policy {
17 17
18 namespace em = enterprise_management; 18 namespace em = enterprise_management;
19 19
20 UserPolicyTokenLoader::Delegate::~Delegate() {} 20 UserPolicyTokenLoader::Delegate::~Delegate() {}
21 21
22 UserPolicyTokenLoader::UserPolicyTokenLoader( 22 UserPolicyTokenLoader::UserPolicyTokenLoader(
23 const base::WeakPtr<Delegate>& delegate, 23 const base::WeakPtr<Delegate>& delegate,
24 const base::FilePath& cache_file, 24 const base::FilePath& cache_file,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 void UserPolicyTokenLoader::NotifyOnOriginThread(const std::string& token, 71 void UserPolicyTokenLoader::NotifyOnOriginThread(const std::string& token,
72 const std::string& device_id) { 72 const std::string& device_id) {
73 DCHECK(origin_task_runner_->RunsTasksOnCurrentThread()); 73 DCHECK(origin_task_runner_->RunsTasksOnCurrentThread());
74 if (delegate_.get()) 74 if (delegate_.get())
75 delegate_->OnTokenLoaded(token, device_id); 75 delegate_->OnTokenLoaded(token, device_id);
76 } 76 }
77 77
78 } // namespace policy 78 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698