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

Side by Side Diff: chrome/browser/sync/syncable/directory_manager.cc

Issue 414072: sync: get rid of path_helpers (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: delete path_helpers_unittest from gyp Created 11 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/sync/syncable/directory_manager.h" 5 #include "chrome/browser/sync/syncable/directory_manager.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <iterator> 9 #include <iterator>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/port.h" 12 #include "base/port.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "chrome/browser/sync/syncable/syncable.h" 14 #include "chrome/browser/sync/syncable/syncable.h"
15 #include "chrome/browser/sync/util/event_sys-inl.h" 15 #include "chrome/browser/sync/util/event_sys-inl.h"
16 #include "chrome/browser/sync/util/path_helpers.h"
17 16
18 namespace syncable { 17 namespace syncable {
19 18
20 static const FilePath::CharType kSyncDataDatabaseFilename[] = 19 static const FilePath::CharType kSyncDataDatabaseFilename[] =
21 FILE_PATH_LITERAL("SyncData.sqlite3"); 20 FILE_PATH_LITERAL("SyncData.sqlite3");
22 21
23 DirectoryManagerEvent DirectoryManagerShutdownEvent() { 22 DirectoryManagerEvent DirectoryManagerShutdownEvent() {
24 DirectoryManagerEvent event; 23 DirectoryManagerEvent event;
25 event.what_happened = DirectoryManagerEvent::SHUTDOWN; 24 event.what_happened = DirectoryManagerEvent::SHUTDOWN;
26 return event; 25 return event;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 return dir_; 146 return dir_;
148 } 147 }
149 148
150 ScopedDirLookup::operator Directory* () const { 149 ScopedDirLookup::operator Directory* () const {
151 CHECK(good_checked_); 150 CHECK(good_checked_);
152 DCHECK(good_); 151 DCHECK(good_);
153 return dir_; 152 return dir_;
154 } 153 }
155 154
156 } // namespace syncable 155 } // namespace syncable
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/directory_backing_store.cc ('k') | chrome/browser/sync/syncable/syncable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698