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

Unified Diff: components/sync/model_impl/model_type_store_backend_unittest.cc

Issue 2732333003: [Sync] ModelTypeStore factory shouldn't require valid PSS to function correctly (Closed)
Patch Set: Address comments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/model_impl/model_type_store_backend_unittest.cc
diff --git a/components/sync/model_impl/model_type_store_backend_unittest.cc b/components/sync/model_impl/model_type_store_backend_unittest.cc
index b6b0aeafde17608744319e534498529e5518e26d..183c71f8780b5efe809143b2264d01681ee92f3b 100644
--- a/components/sync/model_impl/model_type_store_backend_unittest.cc
+++ b/components/sync/model_impl/model_type_store_backend_unittest.cc
@@ -61,12 +61,8 @@ class ModelTypeStoreBackendTest : public testing::Test {
return backend;
}
- bool BackendExistsForPath(std::string path) {
- if (ModelTypeStoreBackend::backend_map_.Get().end() ==
- ModelTypeStoreBackend::backend_map_.Get().find(path)) {
- return false;
- }
- return true;
+ bool BackendExistsForPath(const std::string& path) {
+ return ModelTypeStoreBackend::BackendExistsForTest(path);
}
std::string GetBackendPath(scoped_refptr<ModelTypeStoreBackend> backend) {
« no previous file with comments | « components/sync/model_impl/model_type_store_backend.cc ('k') | ios/chrome/browser/reading_list/reading_list_model_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698