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

Side by Side Diff: chrome/browser/extensions/policy_handlers.cc

Issue 104493005: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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 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/extensions/policy_handlers.h" 5 #include "chrome/browser/extensions/policy_handlers.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/prefs/pref_value_map.h" 8 #include "base/prefs/pref_value_map.h"
9 #include "chrome/browser/extensions/external_policy_loader.h" 9 #include "chrome/browser/extensions/external_policy_loader.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 232 }
233 233
234 return true; 234 return true;
235 } 235 }
236 236
237 void ExtensionURLPatternListPolicyHandler::ApplyPolicySettings( 237 void ExtensionURLPatternListPolicyHandler::ApplyPolicySettings(
238 const policy::PolicyMap& policies, 238 const policy::PolicyMap& policies,
239 PrefValueMap* prefs) { 239 PrefValueMap* prefs) {
240 if (!pref_path_) 240 if (!pref_path_)
241 return; 241 return;
242 const Value* value = policies.GetValue(policy_name()); 242 const base::Value* value = policies.GetValue(policy_name());
243 if (value) 243 if (value)
244 prefs->SetValue(pref_path_, value->DeepCopy()); 244 prefs->SetValue(pref_path_, value->DeepCopy());
245 } 245 }
246 246
247 } // namespace extensions 247 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/menu_manager_unittest.cc ('k') | chrome/browser/extensions/policy_handlers_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698