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

Side by Side Diff: chrome/browser/android/bookmarks/partner_bookmarks_shim.cc

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing errors reported by presubmit Created 6 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 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/android/bookmarks/partner_bookmarks_shim.h" 5 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
12 #include "components/bookmarks/core/browser/bookmark_model.h" 12 #include "components/bookmarks/browser/bookmark_model.h"
13 #include "components/pref_registry/pref_registry_syncable.h" 13 #include "components/pref_registry/pref_registry_syncable.h"
14 #include "content/public/browser/browser_context.h" 14 #include "content/public/browser/browser_context.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
19 namespace { 19 namespace {
20 20
21 // PartnerModelKeeper is used as a singleton to store an immutable hierarchy 21 // PartnerModelKeeper is used as a singleton to store an immutable hierarchy
22 // of partner bookmarks. The hierarchy is retrieved from the partner bookmarks 22 // of partner bookmarks. The hierarchy is retrieved from the partner bookmarks
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 i != node_rename_remove_map_.end(); 280 i != node_rename_remove_map_.end();
281 ++i) { 281 ++i) {
282 base::DictionaryValue* dict = new base::DictionaryValue(); 282 base::DictionaryValue* dict = new base::DictionaryValue();
283 dict->SetString(kMappingUrl, i->first.url().spec()); 283 dict->SetString(kMappingUrl, i->first.url().spec());
284 dict->SetString(kMappingProviderTitle, i->first.provider_title()); 284 dict->SetString(kMappingProviderTitle, i->first.provider_title());
285 dict->SetString(kMappingTitle, i->second); 285 dict->SetString(kMappingTitle, i->second);
286 list.Append(dict); 286 list.Append(dict);
287 } 287 }
288 prefs_->Set(prefs::kPartnerBookmarkMappings, list); 288 prefs_->Set(prefs::kPartnerBookmarkMappings, list);
289 } 289 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698