OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "components/sync_sessions/synced_tab_delegate.h" | |
6 | |
7 #include "base/logging.h" | |
8 #include "components/sync_sessions/sync_sessions_client.h" | |
9 | |
10 using browser_sync::SyncedTabDelegate; | |
11 | |
12 namespace browser_sync { | |
13 | |
14 SyncedTabDelegate::SyncedTabDelegate() {} | |
15 SyncedTabDelegate::~SyncedTabDelegate() {} | |
16 | |
17 void SyncedTabDelegate::SetSyncedWindowGetter( | |
18 scoped_ptr<SyncedWindowDelegatesGetter> getter) { | |
19 synced_window_getter_.reset(getter.release()); | |
20 } | |
21 | |
22 const SyncedWindowDelegate* SyncedTabDelegate::GetSyncedWindowDelegate() const { | |
skym
2015/10/16 16:55:47
Needs #include for SyncedWindowDelegate I think.
Nicolas Zea
2015/10/20 23:14:42
As part of cleaning this up, I realized this code
| |
23 if (!synced_window_getter_) { | |
24 NOTREACHED(); | |
25 } | |
26 return synced_window_getter_->FindById(GetWindowId()); | |
27 } | |
28 | |
29 } // namespace browser_sync | |
OLD | NEW |