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

Side by Side Diff: components/sync_sessions/synced_tab_delegate.cc

Issue 1408643002: [Sync] Componentize synced_tab_delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN, self review Created 5 years, 2 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698