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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_android.cc

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct Created 7 years, 1 month 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/policy/configuration_policy_handler_android.h" 5 #include "chrome/browser/policy/configuration_policy_handler_android.h"
6 6
7 #include "base/prefs/pref_value_map.h" 7 #include "base/prefs/pref_value_map.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/policy/policy_error_map.h" 9 #include "chrome/browser/policy/policy_error_map.h"
10 #include "chrome/browser/policy/policy_map.h"
11 #include "chrome/common/net/url_fixer_upper.h" 10 #include "chrome/common/net/url_fixer_upper.h"
12 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
12 #include "components/policy/core/common/policy_map.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "policy/policy_constants.h" 14 #include "policy/policy_constants.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace policy { 17 namespace policy {
18 18
19 namespace { 19 namespace {
20 20
21 bool GetBookmark(const base::Value& value, 21 bool GetBookmark(const base::Value& value,
22 std::string* name, 22 std::string* name,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 dict->SetString(kName, name); 94 dict->SetString(kName, name);
95 dict->SetString(kUrl, url); 95 dict->SetString(kUrl, url);
96 bookmarks->Append(dict); 96 bookmarks->Append(dict);
97 } 97 }
98 } 98 }
99 99
100 prefs->SetValue(prefs::kManagedBookmarks, bookmarks); 100 prefs->SetValue(prefs::kManagedBookmarks, bookmarks);
101 } 101 }
102 102
103 } // namespace policy 103 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698