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

Side by Side Diff: components/enhanced_bookmarks/bookmark_server_cluster_service.cc

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/enhanced_bookmarks/bookmark_server_cluster_service.h" 5 #include "components/enhanced_bookmarks/bookmark_server_cluster_service.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 } 106 }
107 } 107 }
108 108
109 return cluster_names; 109 return cluster_names;
110 } 110 }
111 111
112 // static 112 // static
113 void BookmarkServerClusterService::RegisterPrefs( 113 void BookmarkServerClusterService::RegisterPrefs(
114 user_prefs::PrefRegistrySyncable* registry) { 114 user_prefs::PrefRegistrySyncable* registry) {
115 registry->RegisterDictionaryPref( 115 registry->RegisterDictionaryPref(prefs::kBookmarkClusters);
116 prefs::kBookmarkClusters,
117 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
118 } 116 }
119 117
120 scoped_ptr<net::URLFetcher> BookmarkServerClusterService::CreateFetcher() { 118 scoped_ptr<net::URLFetcher> BookmarkServerClusterService::CreateFetcher() {
121 // Add the necessary arguments to the URI. 119 // Add the necessary arguments to the URI.
122 GURL url(kClusterUrl); 120 GURL url(kClusterUrl);
123 url = net::AppendQueryParameter(url, "output", "proto"); 121 url = net::AppendQueryParameter(url, "output", "proto");
124 122
125 // Append language. 123 // Append language.
126 if (!application_language_code_.empty()) 124 if (!application_language_code_.empty())
127 url = net::AppendQueryParameter(url, "hl", application_language_code_); 125 url = net::AppendQueryParameter(url, "hl", application_language_code_);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 return false; 319 return false;
322 stars_ids.push_back(stars_id); 320 stars_ids.push_back(stars_id);
323 } 321 }
324 output.insert(std::make_pair(key, stars_ids)); 322 output.insert(std::make_pair(key, stars_ids));
325 } 323 }
326 out_map->swap(output); 324 out_map->swap(output);
327 return true; 325 return true;
328 } 326 }
329 327
330 } // namespace enhanced_bookmarks 328 } // namespace enhanced_bookmarks
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698