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

Unified Diff: chrome/browser/extensions/api/serial/serial_api.cc

Issue 177003015: Pull AsyncApiFunction out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/serial/serial_api.cc
diff --git a/chrome/browser/extensions/api/serial/serial_api.cc b/chrome/browser/extensions/api/serial/serial_api.cc
index cb5de19254338555872a9aff22b49b6c69c19f3d..eaffa4dbb443d258728602785f64176614218071 100644
--- a/chrome/browser/extensions/api/serial/serial_api.cc
+++ b/chrome/browser/extensions/api/serial/serial_api.cc
@@ -56,7 +56,7 @@ SerialAsyncApiFunction::SerialAsyncApiFunction()
SerialAsyncApiFunction::~SerialAsyncApiFunction() {}
bool SerialAsyncApiFunction::PrePrepare() {
- manager_ = ApiResourceManager<SerialConnection>::Get(GetProfile());
+ manager_ = ApiResourceManager<SerialConnection>::Get(context());
DCHECK(manager_);
return true;
}
@@ -134,7 +134,7 @@ bool SerialConnectFunction::Prepare() {
if (options->stop_bits == serial::STOP_BITS_NONE)
options->stop_bits = kDefaultStopBits;
- serial_event_dispatcher_ = SerialEventDispatcher::Get(GetProfile());
+ serial_event_dispatcher_ = SerialEventDispatcher::Get(context());
DCHECK(serial_event_dispatcher_);
return true;
@@ -297,7 +297,7 @@ bool SerialSetPausedFunction::Prepare() {
params_ = serial::SetPaused::Params::Create(*args_);
EXTENSION_FUNCTION_VALIDATE(params_.get());
- serial_event_dispatcher_ = SerialEventDispatcher::Get(GetProfile());
+ serial_event_dispatcher_ = SerialEventDispatcher::Get(context());
DCHECK(serial_event_dispatcher_);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698