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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc

Issue 177233005: [SyncFS] Wire up MetadataDatabaseIndex to MetadataDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_file_system/drive_backend/drive_backend_util.h" 5 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 if (error == -1) 259 if (error == -1)
260 return SYNC_STATUS_NETWORK_ERROR; 260 return SYNC_STATUS_NETWORK_ERROR;
261 261
262 util::Log(logging::LOG_WARNING, 262 util::Log(logging::LOG_WARNING,
263 FROM_HERE, 263 FROM_HERE,
264 "Got unexpected error: %d", 264 "Got unexpected error: %d",
265 static_cast<int>(error)); 265 static_cast<int>(error));
266 return SYNC_STATUS_FAILED; 266 return SYNC_STATUS_FAILED;
267 } 267 }
268 268
269 scoped_ptr<FileTracker> CloneFileTracker(const FileTracker* obj) {
270 if (!obj)
271 return scoped_ptr<FileTracker>();
272 return scoped_ptr<FileTracker>(new FileTracker(*obj));
273 }
274
269 } // namespace drive_backend 275 } // namespace drive_backend
270 } // namespace sync_file_system 276 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698