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

Unified Diff: chrome/browser/ui/webui/signin/get_desktop_browser.h

Issue 2275883003: [Signin Error Dialog] (2/3) Added handlers and UI constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@error-modal-web
Patch Set: Created 4 years, 4 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/ui/webui/signin/get_desktop_browser.h
diff --git a/chrome/browser/ui/webui/signin/get_desktop_browser.h b/chrome/browser/ui/webui/signin/get_desktop_browser.h
new file mode 100644
index 0000000000000000000000000000000000000000..9b791b08cc2dd1577471382562c23690fd0bd5f6
--- /dev/null
+++ b/chrome/browser/ui/webui/signin/get_desktop_browser.h
@@ -0,0 +1,16 @@
+// Copyright 2016 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_UI_WEBUI_SIGNIN_GET_DESKTOP_BROWSER_H_
+#define CHROME_BROWSER_UI_WEBUI_SIGNIN_GET_DESKTOP_BROWSER_H_
+
+namespace signin {
tommycli 2016/08/24 17:36:41 Can this file be consolidated with get_auth_frame
Jane 2016/08/25 19:19:35 Done. Code-wise this makes a lot of sense, I just
+
+// Gets the browser containing the web UI; if none is found, returns the last
+// active browser for web UI's profile.
+Browser* GetDesktopBrowser(content::WebUI* web_ui);
+
+} // namespace signin
+
+#endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_GET_DESKTOP_BROWSER_H_

Powered by Google App Engine
This is Rietveld 408576698