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

Unified Diff: sync/syncable/invalid_directory_backing_store.cc

Issue 10830100: Fix SyncManager initialization failure crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Created 8 years, 5 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: sync/syncable/invalid_directory_backing_store.cc
diff --git a/sync/syncable/invalid_directory_backing_store.cc b/sync/syncable/invalid_directory_backing_store.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0c522ea3a467e975073df38e393722525042d056
--- /dev/null
+++ b/sync/syncable/invalid_directory_backing_store.cc
@@ -0,0 +1,21 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "sync/syncable/invalid_directory_backing_store.h"
+
+namespace syncer {
+namespace syncable {
+
+InvalidDirectoryBackingStore::InvalidDirectoryBackingStore()
+ : DirectoryBackingStore("some_fake_user") {
+}
+
+DirOpenResult InvalidDirectoryBackingStore::Load(
+ MetahandlesIndex* entry_bucket,
+ Directory::KernelLoadInfo* kernel_load_info) {
+ return FAILED_OPEN_DATABASE;
+}
+
+} // namespace syncable
+} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698