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

Side by Side Diff: chrome/browser/sync/glue/data_type_manager_impl.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/data_type_manager_impl.h" 5 #include "chrome/browser/sync/glue/data_type_manager_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
16 #include "base/stringprintf.h" 16 #include "base/stringprintf.h"
17 #include "chrome/browser/sync/glue/data_type_controller.h" 17 #include "chrome/browser/sync/glue/data_type_controller.h"
18 #include "chrome/browser/sync/glue/sync_backend_host.h" 18 #include "chrome/browser/sync/glue/sync_backend_host.h"
19 #include "chrome/common/chrome_notification_types.h" 19 #include "chrome/common/chrome_notification_types.h"
20 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/notification_details.h" 21 #include "content/public/browser/notification_details.h"
22 #include "content/public/browser/notification_service.h" 22 #include "content/public/browser/notification_service.h"
23 #include "content/public/browser/notification_source.h" 23 #include "content/public/browser/notification_source.h"
24 24
25 using content::BrowserThread;
26
25 namespace browser_sync { 27 namespace browser_sync {
26 28
27 namespace { 29 namespace {
28 30
29 static const syncable::ModelType kStartOrder[] = { 31 static const syncable::ModelType kStartOrder[] = {
30 syncable::NIGORI, // Listed for completeness. 32 syncable::NIGORI, // Listed for completeness.
31 syncable::BOOKMARKS, 33 syncable::BOOKMARKS,
32 syncable::PREFERENCES, 34 syncable::PREFERENCES,
33 syncable::AUTOFILL, 35 syncable::AUTOFILL,
34 syncable::AUTOFILL_PROFILE, 36 syncable::AUTOFILL_PROFILE,
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 content::Source<DataTypeManager>(this), 515 content::Source<DataTypeManager>(this),
514 content::NotificationService::NoDetails()); 516 content::NotificationService::NoDetails());
515 } 517 }
516 518
517 void DataTypeManagerImpl::AddToConfigureTime() { 519 void DataTypeManagerImpl::AddToConfigureTime() {
518 DCHECK(!last_restart_time_.is_null()); 520 DCHECK(!last_restart_time_.is_null());
519 configure_time_delta_ += (base::Time::Now() - last_restart_time_); 521 configure_time_delta_ += (base::Time::Now() - last_restart_time_);
520 } 522 }
521 523
522 } // namespace browser_sync 524 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/data_type_controller.h ('k') | chrome/browser/sync/glue/data_type_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698