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

Unified Diff: chrome/browser/chromeos/gdata/gdata_db_factory.cc

Issue 10168025: GDataDB support with leveldb. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: final nits Created 8 years, 8 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: chrome/browser/chromeos/gdata/gdata_db_factory.cc
===================================================================
--- chrome/browser/chromeos/gdata/gdata_db_factory.cc (revision 0)
+++ chrome/browser/chromeos/gdata/gdata_db_factory.cc (revision 0)
@@ -0,0 +1,22 @@
+// 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 "chrome/browser/chromeos/gdata/gdata_db_factory.h"
+
+#include "base/file_path.h"
+#include "base/logging.h"
+#include "chrome/browser/chromeos/gdata/gdata_leveldb.h"
+
+namespace gdata {
+namespace db_factory {
+
+scoped_ptr<GDataDB> CreateGDataDB(const FilePath& db_path) {
+ DVLOG(1) << "CreateGDataDB " << db_path.value();
+ GDataLevelDB* level_db = new GDataLevelDB();
+ level_db->Init(db_path);
+ return scoped_ptr<GDataDB>(level_db);
+}
+
+} // namespace db_factory
+} // namespace gdata
Property changes on: chrome/browser/chromeos/gdata/gdata_db_factory.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698