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

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

Issue 2973313002: Chrome Cleanup: re-open settings post-cleanup if reboot is needed (Closed)
Patch Set: navigation_util -> navigation_util_win since not used on other platforms 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_win.h
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util_win.h b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..7677002ff88b749f16031f2eecaded7d6aa51467
--- /dev/null
+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util_win.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_WIN_H_
+#define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_NAVIGATION_UTIL_WIN_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.
+Browser* FindBrowser();
+
+// Opens a new settings tab in |browser| with the given |disposition|.
+// If |skip_if_current_tab| is true and settings is the currently displayed
+// tab, no new tab is opened.
+void OpenSettingsPage(Browser* browser,
+ WindowOpenDisposition disposition,
+ bool skip_if_current_tab);
+
+} // namespace chrome_cleaner_util
+
+#endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_NAVIGATION_UTIL_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698