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

Unified Diff: chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h

Issue 2973313002: Chrome Cleanup: re-open settings post-cleanup if reboot is needed (Closed)
Patch Set: Revert changes to md_settings_ui.cc (to do in another CL) Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..30d5a61c107c253864122b4585b9ae360e41379f
--- /dev/null
+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util.h
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_NAVIGATION_UTIL_H_
+#define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_NAVIGATION_UTIL_H_
+
+#include "chrome/browser/ui/browser.h"
+
+namespace chrome_cleaner_util {
+
+// Returns the last active tabbed browser or NULL if no such browser currently
+// 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?
+Browser* FindBrowser();
+
+// Opens a new settings tab in |browser| with the given |disposition|.
+// If |skip_if_already_open| is true and settings is the currently displayed
+// tab, no new tab is opened.
+void OpenSettingsPage(Browser* browser,
+ WindowOpenDisposition disposition,
+ bool skip_if_already_open);
+
+} // namespace chrome_cleaner_util
+
+#endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_NAVIGATION_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698