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

Side by Side Diff: components/password_manager/core/browser/password_store.cc

Issue 943533002: Properly ifdef sync code in password_manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « chrome/browser/ui/passwords/password_manager_presenter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/password_manager/core/browser/password_store.h" 5 #include "components/password_manager/core/browser/password_store.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/dump_without_crashing.h" 8 #include "base/debug/dump_without_crashing.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "components/autofill/core/common/password_form.h" 13 #include "components/autofill/core/common/password_form.h"
14 #include "components/password_manager/core/browser/password_store_consumer.h" 14 #include "components/password_manager/core/browser/password_store_consumer.h"
15 #include "components/password_manager/core/browser/password_syncable_service.h"
16 15
17 #if defined(PASSWORD_MANAGER_ENABLE_SYNC) 16 #if defined(PASSWORD_MANAGER_ENABLE_SYNC)
18 #include "components/password_manager/core/browser/password_syncable_service.h" 17 #include "components/password_manager/core/browser/password_syncable_service.h"
19 #endif 18 #endif
20 19
21 using autofill::PasswordForm; 20 using autofill::PasswordForm;
22 21
23 namespace password_manager { 22 namespace password_manager {
24 23
25 namespace { 24 namespace {
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 syncable_service_->InjectStartSyncFlare(flare); 272 syncable_service_->InjectStartSyncFlare(flare);
274 } 273 }
275 274
276 void PasswordStore::DestroySyncableService() { 275 void PasswordStore::DestroySyncableService() {
277 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread()); 276 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread());
278 syncable_service_.reset(); 277 syncable_service_.reset();
279 } 278 }
280 #endif 279 #endif
281 280
282 } // namespace password_manager 281 } // namespace password_manager
OLDNEW
« no previous file with comments | « chrome/browser/ui/passwords/password_manager_presenter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698