| 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 "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/prefs/pref_value_map.h" | 9 #include "base/prefs/pref_value_map.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 prefs->SetValue(prefs::kPromptForDownload, | 107 prefs->SetValue(prefs::kPromptForDownload, |
| 108 new base::FundamentalValue(false)); | 108 new base::FundamentalValue(false)); |
| 109 #if defined(OS_CHROMEOS) | 109 #if defined(OS_CHROMEOS) |
| 110 if (download_to_drive) { | 110 if (download_to_drive) { |
| 111 prefs->SetValue(prefs::kDisableDrive, | 111 prefs->SetValue(prefs::kDisableDrive, |
| 112 new base::FundamentalValue(false)); | 112 new base::FundamentalValue(false)); |
| 113 } | 113 } |
| 114 #endif | 114 #endif |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 |
| 118 void DownloadDirPolicyHandler::ApplyPolicySettings( |
| 119 const policy::PolicyMap& /* policies */, |
| 120 PrefValueMap* /* prefs */) { |
| 121 NOTREACHED(); |
| 122 } |
| OLD | NEW |