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

Side by Side Diff: chrome/browser/ui/webui/signin/get_desktop_browser.cc

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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/profiles/profile.h"
6 #include "chrome/browser/ui/browser_finder.h"
7 #include "content/public/browser/web_ui.h"
8
9 namespace signin {
10
11 Browser* GetDesktopBrowser(content::WebUI* web_ui) {
12 Browser* browser =
13 chrome::FindBrowserWithWebContents(web_ui->GetWebContents());
14 if (!browser)
15 browser = chrome::FindLastActiveWithProfile(Profile::FromWebUI(web_ui));
16 return browser;
17 }
18
19 } // namespace signin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698