OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chromeos/gdata/gdata_db_factory.h" |
| 6 |
| 7 #include "base/file_path.h" |
| 8 #include "base/logging.h" |
| 9 #include "chrome/browser/chromeos/gdata/gdata_leveldb.h" |
| 10 |
| 11 namespace gdata { |
| 12 namespace db_factory { |
| 13 |
| 14 scoped_ptr<GDataDB> CreateGDataDB(const FilePath& db_path) { |
| 15 DVLOG(1) << "CreateGDataDB " << db_path.value(); |
| 16 GDataLevelDB* level_db = new GDataLevelDB(); |
| 17 level_db->Init(db_path); |
| 18 return scoped_ptr<GDataDB>(level_db); |
| 19 } |
| 20 |
| 21 } // namespace db_factory |
| 22 } // namespace gdata |
OLD | NEW |