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

Unified Diff: chrome/browser/extensions/api/dial/dial_api.cc

Issue 2702503003: [Dial] Refactor DialRegistry and DeviceDescriptionFetcher so they can be used by MediaSinkService (Closed)
Patch Set: Created 3 years, 10 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/extensions/api/dial/dial_api.cc
diff --git a/chrome/browser/extensions/api/dial/dial_api.cc b/chrome/browser/extensions/api/dial/dial_api.cc
index 783992bf2befac1cd57264254d3728ba5dc9f878..7377a10142ae1359010d17e87f4c19c034eb27d5 100644
--- a/chrome/browser/extensions/api/dial/dial_api.cc
+++ b/chrome/browser/extensions/api/dial/dial_api.cc
@@ -230,7 +230,8 @@ void DialFetchDeviceDescriptionFunction::MaybeStartFetch(const GURL& url) {
}
device_description_fetcher_ = base::MakeUnique<DeviceDescriptionFetcher>(
- url, Profile::FromBrowserContext(browser_context()),
+ url, Profile::FromBrowserContext(browser_context())->GetRequestContext(),
+ BrowserThread::UI,
base::BindOnce(&DialFetchDeviceDescriptionFunction::OnFetchComplete,
this),
base::BindOnce(&DialFetchDeviceDescriptionFunction::OnFetchError, this));

Powered by Google App Engine
This is Rietveld 408576698