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

Side by Side Diff: chrome/browser/policy/user_cloud_policy_store_chromeos.cc

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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 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/policy/user_cloud_policy_store_chromeos.h" 5 #include "chrome/browser/policy/user_cloud_policy_store_chromeos.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "chrome/browser/chromeos/login/user_manager.h" 16 #include "chrome/browser/chromeos/login/user_manager.h"
17 #include "chrome/browser/policy/proto/cloud_policy.pb.h" 17 #include "chrome/browser/policy/proto/cloud_policy.pb.h"
18 #include "chrome/browser/policy/proto/device_management_local.pb.h" 18 #include "chrome/browser/policy/proto/device_management_local.pb.h"
19 #include "chrome/browser/policy/user_policy_disk_cache.h" 19 #include "chrome/browser/policy/user_policy_disk_cache.h"
20 #include "chrome/browser/policy/user_policy_token_cache.h" 20 #include "chrome/browser/policy/user_policy_token_cache.h"
21 #include "chrome/common/chrome_paths.h" 21 #include "chrome/common/chrome_paths.h"
22 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
23 #include "chrome/common/net/gaia/gaia_auth_util.h"
24 #include "chromeos/dbus/dbus_thread_manager.h" 23 #include "chromeos/dbus/dbus_thread_manager.h"
25 #include "chromeos/dbus/session_manager_client.h" 24 #include "chromeos/dbus/session_manager_client.h"
26 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
26 #include "google_apis/gaia/gaia_auth_util.h"
27 27
28 namespace em = enterprise_management; 28 namespace em = enterprise_management;
29 29
30 namespace policy { 30 namespace policy {
31 31
32 namespace { 32 namespace {
33 // Subdirectory in the user's profile for storing user policies. 33 // Subdirectory in the user's profile for storing user policies.
34 const FilePath::CharType kPolicyDir[] = FILE_PATH_LITERAL("Device Management"); 34 const FilePath::CharType kPolicyDir[] = FILE_PATH_LITERAL("Device Management");
35 // File in the above directory for stroing user policy dmtokens. 35 // File in the above directory for stroing user policy dmtokens.
36 const FilePath::CharType kTokenCacheFile[] = FILE_PATH_LITERAL("Token"); 36 const FilePath::CharType kTokenCacheFile[] = FILE_PATH_LITERAL("Token");
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 .Append(kPolicyDir); 370 .Append(kPolicyDir);
371 const FilePath policy_cache_file = policy_dir.Append(kPolicyCacheFile); 371 const FilePath policy_cache_file = policy_dir.Append(kPolicyCacheFile);
372 const FilePath token_cache_file = policy_dir.Append(kTokenCacheFile); 372 const FilePath token_cache_file = policy_dir.Append(kTokenCacheFile);
373 373
374 return scoped_ptr<CloudPolicyStore>(new UserCloudPolicyStoreChromeOS( 374 return scoped_ptr<CloudPolicyStore>(new UserCloudPolicyStoreChromeOS(
375 chromeos::DBusThreadManager::Get()->GetSessionManagerClient(), 375 chromeos::DBusThreadManager::Get()->GetSessionManagerClient(),
376 token_cache_file, policy_cache_file)); 376 token_cache_file, policy_cache_file));
377 } 377 }
378 378
379 } // namespace policy 379 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/enterprise_install_attributes.cc ('k') | chrome/browser/policy/user_policy_signin_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698