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

Side by Side Diff: chrome/browser/ui/android/tab_model/tab_model.cc

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 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
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 "chrome/browser/ui/android/tab_model/tab_model.h" 5 #include "chrome/browser/ui/android/tab_model/tab_model.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/sync/glue/synced_window_delegate_android.h" 11 #include "chrome/browser/sync/glue/synced_window_delegate_android.h"
12 #include "chrome/browser/sync/profile_sync_service.h"
13 #include "chrome/browser/sync/profile_sync_service_factory.h" 12 #include "chrome/browser/sync/profile_sync_service_factory.h"
14 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h" 13 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h"
14 #include "components/browser_sync/browser/profile_sync_service.h"
15 #include "content/public/browser/notification_service.h" 15 #include "content/public/browser/notification_service.h"
16 16
17 using content::NotificationService; 17 using content::NotificationService;
18 18
19 // Keep this in sync with 19 // Keep this in sync with
20 // chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabList.java 20 // chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabList.java
21 static int INVALID_TAB_INDEX = -1; 21 static int INVALID_TAB_INDEX = -1;
22 22
23 TabModel::TabModel(Profile* profile) 23 TabModel::TabModel(Profile* profile)
24 : profile_(profile), 24 : profile_(profile),
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 if (is_off_the_record_) { 101 if (is_off_the_record_) {
102 Profile* profile = content::Source<Profile>(source).ptr(); 102 Profile* profile = content::Source<Profile>(source).ptr();
103 if (profile && profile->IsOffTheRecord()) 103 if (profile && profile->IsOffTheRecord())
104 profile_ = profile; 104 profile_ = profile;
105 } 105 }
106 break; 106 break;
107 default: 107 default:
108 NOTREACHED(); 108 NOTREACHED();
109 } 109 }
110 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698