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

Side by Side Diff: chrome/browser/devtools/devtools_auto_opener.cc

Issue 2741053005: [Chrome OS] Clean up BrowserTabStripTracker Init parameter. (Closed)
Patch Set: . Created 3 years, 9 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/devtools/global_confirm_info_bar.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/devtools/devtools_auto_opener.h" 5 #include "chrome/browser/devtools/devtools_auto_opener.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/devtools/devtools_window.h" 8 #include "chrome/browser/devtools/devtools_window.h"
9 9
10 DevToolsAutoOpener::DevToolsAutoOpener() 10 DevToolsAutoOpener::DevToolsAutoOpener()
11 : browser_tab_strip_tracker_(this, nullptr, nullptr) { 11 : browser_tab_strip_tracker_(this, nullptr, nullptr) {
12 browser_tab_strip_tracker_.Init( 12 browser_tab_strip_tracker_.Init();
13 BrowserTabStripTracker::InitWith::ALL_BROWERS);
14 } 13 }
15 14
16 DevToolsAutoOpener::~DevToolsAutoOpener() { 15 DevToolsAutoOpener::~DevToolsAutoOpener() {
17 } 16 }
18 17
19 void DevToolsAutoOpener::TabInsertedAt(TabStripModel* tab_strip_model, 18 void DevToolsAutoOpener::TabInsertedAt(TabStripModel* tab_strip_model,
20 content::WebContents* contents, 19 content::WebContents* contents,
21 int index, 20 int index,
22 bool foreground) { 21 bool foreground) {
23 if (!DevToolsWindow::IsDevToolsWindow(contents)) 22 if (!DevToolsWindow::IsDevToolsWindow(contents))
24 DevToolsWindow::OpenDevToolsWindow(contents); 23 DevToolsWindow::OpenDevToolsWindow(contents);
25 } 24 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/global_confirm_info_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698