Chromium Code Reviews| 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_ |