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

Side by Side Diff: chrome/browser/sync/engine/base_transaction.cc

Issue 7633077: Refactor syncapi.h (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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
(Empty)
1 // Copyright (c) 2011 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 "base_transaction.h"
6
7 #include "chrome/browser/sync/syncable/directory_manager.h"
8
9 namespace sync_api {
10
11 //////////////////////////////////////////////////////////////////////////
12 // BaseTransaction member definitions
13 BaseTransaction::BaseTransaction(UserShare* share)
14 : lookup_(NULL) {
15 DCHECK(share && share->dir_manager.get());
16 lookup_ = new syncable::ScopedDirLookup(share->dir_manager.get(),
17 share->name);
18 cryptographer_ = share->dir_manager->GetCryptographer(this);
19 if (!(lookup_->good()))
20 DCHECK(false) << "ScopedDirLookup failed on valid DirManager.";
21 }
22 BaseTransaction::~BaseTransaction() {
23 delete lookup_;
24 }
25
26 } // namespace sync_api
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698