| OLD | NEW |
| 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 <stddef.h> |
| 8 |
| 7 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 8 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
| 11 #include "base/values.h" | 13 #include "base/values.h" |
| 12 #include "components/bookmarks/browser/bookmark_model.h" | 14 #include "components/bookmarks/browser/bookmark_model.h" |
| 13 #include "components/enhanced_bookmarks/enhanced_bookmark_model.h" | 15 #include "components/enhanced_bookmarks/enhanced_bookmark_model.h" |
| 14 #include "components/enhanced_bookmarks/enhanced_bookmark_utils.h" | 16 #include "components/enhanced_bookmarks/enhanced_bookmark_utils.h" |
| 15 #include "components/enhanced_bookmarks/pref_names.h" | 17 #include "components/enhanced_bookmarks/pref_names.h" |
| 16 #include "components/enhanced_bookmarks/proto/cluster.pb.h" | 18 #include "components/enhanced_bookmarks/proto/cluster.pb.h" |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 return false; | 384 return false; |
| 383 stars_ids.push_back(stars_id); | 385 stars_ids.push_back(stars_id); |
| 384 } | 386 } |
| 385 output.insert(std::make_pair(key, stars_ids)); | 387 output.insert(std::make_pair(key, stars_ids)); |
| 386 } | 388 } |
| 387 out_map->swap(output); | 389 out_map->swap(output); |
| 388 return true; | 390 return true; |
| 389 } | 391 } |
| 390 | 392 |
| 391 } // namespace enhanced_bookmarks | 393 } // namespace enhanced_bookmarks |
| OLD | NEW |