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

Unified Diff: chrome/browser/ui/ash/chrome_new_window_client.h

Issue 2599833003: ChromeOS: Fix NewWindow's bug with browser on other user's desktop and no browser on current's (Closed)
Patch Set: add test coverage Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/ash/chrome_new_window_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/chrome_new_window_client.h
diff --git a/chrome/browser/ui/ash/chrome_new_window_client.h b/chrome/browser/ui/ash/chrome_new_window_client.h
index f8bcb0f59473e8565f95cf94f39643b1a1982404..0004039f9350624622c7ea74bdf09b186903c0f8 100644
--- a/chrome/browser/ui/ash/chrome_new_window_client.h
+++ b/chrome/browser/ui/ash/chrome_new_window_client.h
@@ -11,11 +11,16 @@
#include "base/macros.h"
#include "mojo/public/cpp/bindings/associated_binding.h"
+class Browser;
+
class ChromeNewWindowClient : public ash::mojom::NewWindowClient {
public:
ChromeNewWindowClient();
~ChromeNewWindowClient() override;
+ // Returns the active browser that has active browser window, if any.
+ static Browser* GetActiveBrowser();
+
// Overridden from ash::mojom::NewWindowClient:
void NewTab() override;
void NewWindow(bool incognito) override;
« no previous file with comments | « no previous file | chrome/browser/ui/ash/chrome_new_window_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698