Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_NAVIGATION_UT IL_H_ | |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_NAVIGATION_UT IL_H_ | |
| 7 | |
| 8 #include "chrome/browser/ui/browser.h" | |
| 9 | |
| 10 namespace chrome_cleaner_util { | |
| 11 | |
| 12 // Returns the last active tabbed browser or NULL if no such browser currently | |
| 13 // exists. | |
|
csharp
2017/07/10 20:53:26
What about using ScopedTabbedBrowserDisplayer?
proberge
2017/07/10 21:16:03
I don't think we want to create a browser if we ca
csharp
2017/07/11 16:54:19
Ah, true.
What about FindTabbedBrowser then?
| |
| 14 Browser* FindBrowser(); | |
| 15 | |
| 16 // Opens a new settings tab in |browser| with the given |disposition|. | |
| 17 // If |skip_if_already_open| is true and settings is the currently displayed | |
| 18 // tab, no new tab is opened. | |
| 19 void OpenSettingsPage(Browser* browser, | |
| 20 WindowOpenDisposition disposition, | |
| 21 bool skip_if_already_open); | |
| 22 | |
| 23 } // namespace chrome_cleaner_util | |
| 24 | |
| 25 #endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_NAVIGATION _UTIL_H_ | |
| OLD | NEW |