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

Side by Side Diff: sync/internal_api/sync_rollback_manager_base.cc

Issue 642023004: Standardize usage of virtual/override/final in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "sync/internal_api/sync_rollback_manager_base.h" 5 #include "sync/internal_api/sync_rollback_manager_base.h"
6 6
7 #include "sync/internal_api/public/base/model_type.h" 7 #include "sync/internal_api/public/base/model_type.h"
8 #include "sync/internal_api/public/read_node.h" 8 #include "sync/internal_api/public/read_node.h"
9 #include "sync/internal_api/public/read_transaction.h" 9 #include "sync/internal_api/public/read_transaction.h"
10 #include "sync/internal_api/public/write_transaction.h" 10 #include "sync/internal_api/public/write_transaction.h"
11 #include "sync/syncable/directory_backing_store.h" 11 #include "sync/syncable/directory_backing_store.h"
12 #include "sync/syncable/mutable_entry.h" 12 #include "sync/syncable/mutable_entry.h"
13 13
14 namespace { 14 namespace {
15 15
16 // Permanent bookmark folders as defined in bookmark_model_associator.cc. 16 // Permanent bookmark folders as defined in bookmark_model_associator.cc.
17 // No mobile bookmarks because they only exists with sync enabled. 17 // No mobile bookmarks because they only exists with sync enabled.
18 const char kBookmarkBarTag[] = "bookmark_bar"; 18 const char kBookmarkBarTag[] = "bookmark_bar";
19 const char kOtherBookmarksTag[] = "other_bookmarks"; 19 const char kOtherBookmarksTag[] = "other_bookmarks";
20 20
21 class DummyEntryptionHandler : public syncer::SyncEncryptionHandler { 21 class DummyEntryptionHandler : public syncer::SyncEncryptionHandler {
22 virtual void AddObserver(Observer* observer) override {} 22 void AddObserver(Observer* observer) override {}
23 virtual void RemoveObserver(Observer* observer) override {} 23 void RemoveObserver(Observer* observer) override {}
24 virtual void Init() override {} 24 void Init() override {}
25 virtual void SetEncryptionPassphrase(const std::string& passphrase, 25 void SetEncryptionPassphrase(const std::string& passphrase,
26 bool is_explicit) override {} 26 bool is_explicit) override {}
27 virtual void SetDecryptionPassphrase(const std::string& passphrase) 27 void SetDecryptionPassphrase(const std::string& passphrase) override {}
28 override {} 28 void EnableEncryptEverything() override {}
29 virtual void EnableEncryptEverything() override {} 29 bool EncryptEverythingEnabled() const override { return false; }
30 virtual bool EncryptEverythingEnabled() const override { 30 syncer::PassphraseType GetPassphraseType() const override {
31 return false;
32 }
33 virtual syncer::PassphraseType GetPassphraseType() const override {
34 return syncer::KEYSTORE_PASSPHRASE; 31 return syncer::KEYSTORE_PASSPHRASE;
35 } 32 }
36 }; 33 };
37 34
38 } // anonymous namespace 35 } // anonymous namespace
39 36
40 namespace syncer { 37 namespace syncer {
41 38
42 SyncRollbackManagerBase::SyncRollbackManagerBase() 39 SyncRollbackManagerBase::SyncRollbackManagerBase()
43 : report_unrecoverable_error_function_(NULL), 40 : report_unrecoverable_error_function_(NULL),
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 319
323 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver( 320 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver(
324 syncer::TypeDebugInfoObserver* observer) {} 321 syncer::TypeDebugInfoObserver* observer) {}
325 322
326 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( 323 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver(
327 syncer::TypeDebugInfoObserver* observer) { return false; } 324 syncer::TypeDebugInfoObserver* observer) { return false; }
328 325
329 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} 326 void SyncRollbackManagerBase::RequestEmitDebugInfo() {}
330 327
331 } // namespace syncer 328 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_rollback_manager_base.h ('k') | sync/internal_api/sync_rollback_manager_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698