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

Side by Side Diff: chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc

Issue 15499005: Add a new SyncedTabDelegate for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix pre-rendering + revert changes to SessionTabHelper. Created 7 years, 6 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 | Annotate | Revision Log
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/sync/tab_contents_synced_tab_delegate.h" 5 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "chrome/browser/extensions/tab_helper.h" 8 #include "chrome/browser/extensions/tab_helper.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/sessions/session_tab_helper.h" 10 #include "chrome/browser/sessions/session_tab_helper.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 #endif 96 #endif
97 } 97 }
98 98
99 bool TabContentsSyncedTabDelegate::IsPinned() const { 99 bool TabContentsSyncedTabDelegate::IsPinned() const {
100 const browser_sync::SyncedWindowDelegate* window = 100 const browser_sync::SyncedWindowDelegate* window =
101 browser_sync::SyncedWindowDelegate::FindSyncedWindowDelegateWithId( 101 browser_sync::SyncedWindowDelegate::FindSyncedWindowDelegateWithId(
102 GetWindowId()); 102 GetWindowId());
103 // We might not have a parent window, e.g. Developer Tools. 103 // We might not have a parent window, e.g. Developer Tools.
104 return window ? window->IsTabPinned(this) : false; 104 return window ? window->IsTabPinned(this) : false;
105 } 105 }
106
107 bool TabContentsSyncedTabDelegate::HasWebContents() const { return true; }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698