| Index: chrome/browser/extensions/api/serial/serial_event_dispatcher.cc
|
| diff --git a/chrome/browser/extensions/api/serial/serial_event_dispatcher.cc b/chrome/browser/extensions/api/serial/serial_event_dispatcher.cc
|
| index 54495d12461559480463ceb3d3838e45fa38719c..91dae3df3de2cf90fcf0a34006e05888694438a2 100644
|
| --- a/chrome/browser/extensions/api/serial/serial_event_dispatcher.cc
|
| +++ b/chrome/browser/extensions/api/serial/serial_event_dispatcher.cc
|
| @@ -35,15 +35,16 @@ ProfileKeyedAPIFactory<SerialEventDispatcher>*
|
| }
|
|
|
| // static
|
| -SerialEventDispatcher* SerialEventDispatcher::Get(Profile* profile) {
|
| - return ProfileKeyedAPIFactory<SerialEventDispatcher>::GetForProfile(profile);
|
| +SerialEventDispatcher* SerialEventDispatcher::Get(
|
| + content::BrowserContext* context) {
|
| + return ProfileKeyedAPIFactory<SerialEventDispatcher>::GetForProfile(context);
|
| }
|
|
|
| -SerialEventDispatcher::SerialEventDispatcher(Profile* profile)
|
| +SerialEventDispatcher::SerialEventDispatcher(content::BrowserContext* context)
|
| : thread_id_(SerialConnection::kThreadId),
|
| - profile_(profile) {
|
| + profile_(Profile::FromBrowserContext(context)) {
|
| ApiResourceManager<SerialConnection>* manager =
|
| - ApiResourceManager<SerialConnection>::Get(profile);
|
| + ApiResourceManager<SerialConnection>::Get(profile_);
|
| DCHECK(manager) << "No serial connection manager.";
|
| connections_ = manager->data_;
|
| }
|
|
|