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

Side by Side Diff: sync/sessions/sync_session_context.cc

Issue 1991973002: [Sync] Add histograms for cookie jar state on Sessions commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 7 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 | « sync/sessions/sync_session_context.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sessions/sync_session_context.h" 5 #include "sync/sessions/sync_session_context.h"
6 6
7 #include "sync/sessions/debug_info_getter.h" 7 #include "sync/sessions/debug_info_getter.h"
8 #include "sync/util/extensions_activity.h" 8 #include "sync/util/extensions_activity.h"
9 9
10 namespace syncer { 10 namespace syncer {
(...skipping 14 matching lines...) Expand all
25 extensions_activity_(extensions_activity), 25 extensions_activity_(extensions_activity),
26 notifications_enabled_(false), 26 notifications_enabled_(false),
27 max_commit_batch_size_(kDefaultMaxCommitBatchSize), 27 max_commit_batch_size_(kDefaultMaxCommitBatchSize),
28 debug_info_getter_(debug_info_getter), 28 debug_info_getter_(debug_info_getter),
29 model_type_registry_(model_type_registry), 29 model_type_registry_(model_type_registry),
30 keystore_encryption_enabled_(keystore_encryption_enabled), 30 keystore_encryption_enabled_(keystore_encryption_enabled),
31 invalidator_client_id_(invalidator_client_id), 31 invalidator_client_id_(invalidator_client_id),
32 server_enabled_pre_commit_update_avoidance_(false), 32 server_enabled_pre_commit_update_avoidance_(false),
33 client_enabled_pre_commit_update_avoidance_( 33 client_enabled_pre_commit_update_avoidance_(
34 client_enabled_pre_commit_update_avoidance), 34 client_enabled_pre_commit_update_avoidance),
35 cookie_jar_mismatch_(false) { 35 cookie_jar_mismatch_(false),
36 cookie_jar_empty_(false) {
36 std::vector<SyncEngineEventListener*>::const_iterator it; 37 std::vector<SyncEngineEventListener*>::const_iterator it;
37 for (it = listeners.begin(); it != listeners.end(); ++it) 38 for (it = listeners.begin(); it != listeners.end(); ++it)
38 listeners_.AddObserver(*it); 39 listeners_.AddObserver(*it);
39 } 40 }
40 41
41 SyncSessionContext::~SyncSessionContext() { 42 SyncSessionContext::~SyncSessionContext() {
42 } 43 }
43 44
44 ModelTypeSet SyncSessionContext::GetEnabledTypes() const { 45 ModelTypeSet SyncSessionContext::GetEnabledTypes() const {
45 return model_type_registry_->GetEnabledTypes(); 46 return model_type_registry_->GetEnabledTypes();
46 } 47 }
47 48
48 void SyncSessionContext::SetRoutingInfo( 49 void SyncSessionContext::SetRoutingInfo(
49 const ModelSafeRoutingInfo& routing_info) { 50 const ModelSafeRoutingInfo& routing_info) {
50 model_type_registry_->SetEnabledDirectoryTypes(routing_info); 51 model_type_registry_->SetEnabledDirectoryTypes(routing_info);
51 } 52 }
52 53
53 } // namespace sessions 54 } // namespace sessions
54 } // namespace syncer 55 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/sessions/sync_session_context.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698