OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/device_management_policy_provider.h" | 5 #include "chrome/browser/policy/device_management_policy_provider.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
11 #include "base/task.h" | 11 #include "base/task.h" |
12 #include "chrome/browser/browser_thread.h" | 12 #include "chrome/browser/browser_thread.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/policy/device_management_backend.h" | 14 #include "chrome/browser/policy/device_management_backend.h" |
15 #include "chrome/browser/policy/device_management_policy_cache.h" | 15 #include "chrome/browser/policy/device_management_policy_cache.h" |
16 #include "chrome/browser/policy/proto/device_management_constants.h" | 16 #include "chrome/browser/policy/proto/device_management_constants.h" |
17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/notification_service.h" | 19 #include "chrome/common/notification_service.h" |
20 #include "chrome/common/notification_type.h" | 20 #include "chrome/common/notification_type.h" |
21 | 21 |
22 namespace policy { | 22 namespace policy { |
23 | 23 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 const FilePath device_management_dir = user_data_dir.Append( | 338 const FilePath device_management_dir = user_data_dir.Append( |
339 FILE_PATH_LITERAL("Device Management")); | 339 FILE_PATH_LITERAL("Device Management")); |
340 if (!file_util::DirectoryExists(device_management_dir)) { | 340 if (!file_util::DirectoryExists(device_management_dir)) { |
341 if (!file_util::CreateDirectory(device_management_dir)) | 341 if (!file_util::CreateDirectory(device_management_dir)) |
342 NOTREACHED(); | 342 NOTREACHED(); |
343 } | 343 } |
344 return device_management_dir; | 344 return device_management_dir; |
345 } | 345 } |
346 | 346 |
347 } // namespace policy | 347 } // namespace policy |
OLD | NEW |