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

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

Issue 2479683006: [Sync] Add support for identifying tabbed activites (Closed)
Patch Set: Rename proto Created 4 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/sync/glue/synced_window_delegate_android.h" 5 #include "chrome/browser/sync/glue/synced_window_delegate_android.h"
6 6
7 #include "chrome/browser/android/tab_android.h" 7 #include "chrome/browser/android/tab_android.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/sync/glue/synced_tab_delegate_android.h" 9 #include "chrome/browser/sync/glue/synced_tab_delegate_android.h"
10 #include "chrome/browser/ui/android/tab_model/tab_model.h" 10 #include "chrome/browser/ui/android/tab_model/tab_model.h"
(...skipping 26 matching lines...) Expand all
37 37
38 int SyncedWindowDelegateAndroid::GetActiveIndex() const { 38 int SyncedWindowDelegateAndroid::GetActiveIndex() const {
39 return tab_model_->GetActiveIndex(); 39 return tab_model_->GetActiveIndex();
40 } 40 }
41 41
42 bool SyncedWindowDelegateAndroid::IsApp() const { 42 bool SyncedWindowDelegateAndroid::IsApp() const {
43 return false; 43 return false;
44 } 44 }
45 45
46 bool SyncedWindowDelegateAndroid::IsTypeTabbed() const { 46 bool SyncedWindowDelegateAndroid::IsTypeTabbed() const {
47 return true; 47 return tab_model_->IsTabbedActivity();
48 } 48 }
49 49
50 bool SyncedWindowDelegateAndroid::IsTypePopup() const { 50 bool SyncedWindowDelegateAndroid::IsTypePopup() const {
51 return false; 51 return false;
52 } 52 }
53 53
54 bool SyncedWindowDelegateAndroid::IsTabPinned( 54 bool SyncedWindowDelegateAndroid::IsTabPinned(
55 const SyncedTabDelegate* tab) const { 55 const SyncedTabDelegate* tab) const {
56 return false; 56 return false;
57 } 57 }
(...skipping 11 matching lines...) Expand all
69 69
70 bool SyncedWindowDelegateAndroid::IsSessionRestoreInProgress() const { 70 bool SyncedWindowDelegateAndroid::IsSessionRestoreInProgress() const {
71 return tab_model_->IsSessionRestoreInProgress(); 71 return tab_model_->IsSessionRestoreInProgress();
72 } 72 }
73 73
74 bool SyncedWindowDelegateAndroid::ShouldSync() const { 74 bool SyncedWindowDelegateAndroid::ShouldSync() const {
75 return true; 75 return true;
76 } 76 }
77 77
78 } // namespace browser_sync 78 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698