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

Side by Side Diff: chrome/browser/sync/glue/password_data_type_controller.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 (c) 2011 The Chromium Authors. All rights reserved. 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 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/glue/password_data_type_controller.h" 5 #include "chrome/browser/sync/glue/password_data_type_controller.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "chrome/browser/password_manager/password_store.h" 9 #include "chrome/browser/password_manager/password_store.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/sync/api/sync_error.h" 11 #include "chrome/browser/sync/api/sync_error.h"
12 #include "chrome/browser/sync/profile_sync_factory.h" 12 #include "chrome/browser/sync/profile_sync_factory.h"
13 #include "chrome/browser/sync/profile_sync_service.h" 13 #include "chrome/browser/sync/profile_sync_service.h"
14 #include "chrome/browser/webdata/web_data_service.h" 14 #include "chrome/browser/webdata/web_data_service.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 16
17 using content::BrowserThread;
18
17 namespace browser_sync { 19 namespace browser_sync {
18 20
19 PasswordDataTypeController::PasswordDataTypeController( 21 PasswordDataTypeController::PasswordDataTypeController(
20 ProfileSyncFactory* profile_sync_factory, 22 ProfileSyncFactory* profile_sync_factory,
21 Profile* profile) 23 Profile* profile)
22 : NonFrontendDataTypeController(profile_sync_factory, 24 : NonFrontendDataTypeController(profile_sync_factory,
23 profile) { 25 profile) {
24 } 26 }
25 27
26 PasswordDataTypeController::~PasswordDataTypeController() { 28 PasswordDataTypeController::~PasswordDataTypeController() {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 95 }
94 96
95 void PasswordDataTypeController::RecordStartFailure(StartResult result) { 97 void PasswordDataTypeController::RecordStartFailure(StartResult result) {
96 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 98 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
97 UMA_HISTOGRAM_ENUMERATION("Sync.PasswordStartFailures", 99 UMA_HISTOGRAM_ENUMERATION("Sync.PasswordStartFailures",
98 result, 100 result,
99 MAX_START_RESULT); 101 MAX_START_RESULT);
100 } 102 }
101 103
102 } // namespace browser_sync 104 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/password_change_processor.cc ('k') | chrome/browser/sync/glue/password_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698