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

Unified Diff: chrome/browser/usb/web_usb_detector.cc

Issue 2505433002: Open link from WebUSB in the last used profile. (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/usb/web_usb_detector.cc
diff --git a/chrome/browser/usb/web_usb_detector.cc b/chrome/browser/usb/web_usb_detector.cc
index 07c3a3b1cbf19647920f1f1173a8af811232ffdd..8bf90ddead499be814047d2624da60a87a312d80 100644
--- a/chrome/browser/usb/web_usb_detector.cc
+++ b/chrome/browser/usb/web_usb_detector.cc
@@ -67,7 +67,7 @@ void RecordNotificationClosure(WebUsbNotificationClosed disposition) {
Browser* GetBrowser() {
chrome::ScopedTabbedBrowserDisplayer browser_displayer(
- ProfileManager::GetActiveUserProfile());
+ ProfileManager::GetLastUsedProfileAllowedByPolicy());
DCHECK(browser_displayer.browser());
return browser_displayer.browser();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698