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

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

Issue 480883002: Move session_id.{cc,h} from chrome/browser/sessions to components/sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/browser_synced_window_delegate.h" 5 #include "chrome/browser/ui/sync/browser_synced_window_delegate.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "chrome/browser/sessions/session_id.h"
10 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_finder.h" 10 #include "chrome/browser/ui/browser_finder.h"
12 #include "chrome/browser/ui/browser_iterator.h" 11 #include "chrome/browser/ui/browser_iterator.h"
13 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" 12 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h"
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" 13 #include "chrome/browser/ui/tabs/tab_strip_model.h"
14 #include "components/sessions/session_id.h"
15 15
16 // static SyncedWindowDelegate implementations 16 // static SyncedWindowDelegate implementations
17 17
18 // static 18 // static
19 const std::set<browser_sync::SyncedWindowDelegate*> 19 const std::set<browser_sync::SyncedWindowDelegate*>
20 browser_sync::SyncedWindowDelegate::GetSyncedWindowDelegates() { 20 browser_sync::SyncedWindowDelegate::GetSyncedWindowDelegates() {
21 std::set<browser_sync::SyncedWindowDelegate*> synced_window_delegates; 21 std::set<browser_sync::SyncedWindowDelegate*> synced_window_delegates;
22 for (chrome::BrowserIterator it; !it.done(); it.Next()) 22 for (chrome::BrowserIterator it; !it.done(); it.Next())
23 synced_window_delegates.insert(it->synced_window_delegate()); 23 synced_window_delegates.insert(it->synced_window_delegate());
24 return synced_window_delegates; 24 return synced_window_delegates;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 return browser_->is_type_tabbed(); 86 return browser_->is_type_tabbed();
87 } 87 }
88 88
89 bool BrowserSyncedWindowDelegate::IsTypePopup() const { 89 bool BrowserSyncedWindowDelegate::IsTypePopup() const {
90 return browser_->is_type_popup(); 90 return browser_->is_type_popup();
91 } 91 }
92 92
93 bool BrowserSyncedWindowDelegate::IsSessionRestoreInProgress() const { 93 bool BrowserSyncedWindowDelegate::IsSessionRestoreInProgress() const {
94 return false; 94 return false;
95 } 95 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/browser_synced_window_delegate.h ('k') | chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698