OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/download/download_dir_policy_handler.h" | 5 #include "chrome/browser/download/download_dir_policy_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 const char* kDriveNamePolicyVariableName = "${google_drive}"; | 33 const char* kDriveNamePolicyVariableName = "${google_drive}"; |
34 | 34 |
35 // Drive root folder relative to its mount point. | 35 // Drive root folder relative to its mount point. |
36 const base::FilePath::CharType* kRootRelativeToDriveMount = | 36 const base::FilePath::CharType* kRootRelativeToDriveMount = |
37 FILE_PATH_LITERAL("root"); | 37 FILE_PATH_LITERAL("root"); |
38 #endif | 38 #endif |
39 } // namespace | 39 } // namespace |
40 | 40 |
41 DownloadDirPolicyHandler::DownloadDirPolicyHandler() | 41 DownloadDirPolicyHandler::DownloadDirPolicyHandler() |
42 : TypeCheckingPolicyHandler(policy::key::kDownloadDirectory, | 42 : TypeCheckingPolicyHandler(policy::key::kDownloadDirectory, |
43 base::Value::TYPE_STRING) {} | 43 base::Value::Type::STRING) {} |
44 | 44 |
45 DownloadDirPolicyHandler::~DownloadDirPolicyHandler() {} | 45 DownloadDirPolicyHandler::~DownloadDirPolicyHandler() {} |
46 | 46 |
47 bool DownloadDirPolicyHandler::CheckPolicySettings( | 47 bool DownloadDirPolicyHandler::CheckPolicySettings( |
48 const policy::PolicyMap& policies, | 48 const policy::PolicyMap& policies, |
49 policy::PolicyErrorMap* errors) { | 49 policy::PolicyErrorMap* errors) { |
50 const base::Value* value = NULL; | 50 const base::Value* value = NULL; |
51 if (!CheckAndGetValue(policies, errors, &value)) | 51 if (!CheckAndGetValue(policies, errors, &value)) |
52 return false; | 52 return false; |
53 | 53 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 } | 117 } |
118 #endif | 118 #endif |
119 } | 119 } |
120 } | 120 } |
121 | 121 |
122 void DownloadDirPolicyHandler::ApplyPolicySettings( | 122 void DownloadDirPolicyHandler::ApplyPolicySettings( |
123 const policy::PolicyMap& /* policies */, | 123 const policy::PolicyMap& /* policies */, |
124 PrefValueMap* /* prefs */) { | 124 PrefValueMap* /* prefs */) { |
125 NOTREACHED(); | 125 NOTREACHED(); |
126 } | 126 } |
OLD | NEW |