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

Side by Side Diff: chrome/browser/download/download_dir_policy_handler.cc

Issue 1019283005: Cleanup the ConfigurationPolicyHandler interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698