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

Side by Side Diff: chrome/browser/sync/sessions/browser_list_router_helper.cc

Issue 2824073002: [sync] Prevent sessions flare on startup (Closed)
Patch Set: Disable test on android Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/sync/sessions/sync_sessions_router_tab_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/sessions/sync_sessions_router_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698