OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/sync/sessions/browser_list_router_helper.h" | 5 #include "chrome/browser/sync/sessions/browser_list_router_helper.h" |
6 | 6 |
7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
8 #include "chrome/browser/ui/browser_list.h" | 8 #include "chrome/browser/ui/browser_list.h" |
9 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" | 9 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" |
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 void BrowserListRouterHelper::OnBrowserRemoved(Browser* browser) { | 34 void BrowserListRouterHelper::OnBrowserRemoved(Browser* browser) { |
35 browser->tab_strip_model()->RemoveObserver(this); | 35 browser->tab_strip_model()->RemoveObserver(this); |
36 } | 36 } |
37 | 37 |
38 void BrowserListRouterHelper::TabInsertedAt(TabStripModel* model, | 38 void BrowserListRouterHelper::TabInsertedAt(TabStripModel* model, |
39 content::WebContents* web_contents, | 39 content::WebContents* web_contents, |
40 int index, | 40 int index, |
41 bool foreground) { | 41 bool foreground) { |
42 router_->NotifyTabModified(web_contents); | 42 router_->NotifyTabModified(web_contents, false); |
43 } | 43 } |
44 | 44 |
45 } // namespace sync_sessions | 45 } // namespace sync_sessions |
OLD | NEW |