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

Unified Diff: chrome/browser/sync/glue/synced_tab_delegate_desktop.cc

Issue 1408643002: [Sync] Componentize synced_tab_delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test broken by rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/synced_tab_delegate_desktop.cc
diff --git a/chrome/browser/sync/glue/synced_tab_delegate_desktop.cc b/chrome/browser/sync/glue/synced_tab_delegate_desktop.cc
deleted file mode 100644
index ff56072c2998c5bd8e319a24378f8d6fd961d9cf..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/glue/synced_tab_delegate_desktop.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/sync/glue/synced_tab_delegate.h"
-#include "chrome/browser/ui/sync/browser_synced_window_delegates_getter.h"
-#include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h"
-
-// This should be the version of ImplFromWebContents that's pulled in for non-
-// android/ios builds. This is the standard content::WebContentsUserData way.
-// SyncedTabDelegateAndroid is a little bit funky, and does this differently.
-// Since SyncedTabDelegateAndroid implements most of its functionality by
-// invoking TabContentsSyncedTabDelegate, this is the only SyncedTabDelegate
-// piece that avoids being included in android builds.
-
-namespace browser_sync {
-
-// static
-SyncedTabDelegate* SyncedTabDelegate::ImplFromWebContents(
- content::WebContents* web_contents) {
- SyncedTabDelegate* delegate =
- TabContentsSyncedTabDelegate::FromWebContents(web_contents);
- if (!delegate) {
- return nullptr;
- }
- delegate->SetSyncedWindowGetter(make_scoped_ptr(
- new BrowserSyncedWindowDelegatesGetter()));
- return delegate;
-}
-
-} // namespace browser_sync

Powered by Google App Engine
This is Rietveld 408576698