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

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

Issue 177003015: Pull AsyncApiFunction out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaser! 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.h
diff --git a/chrome/browser/extensions/api/serial/serial_api.h b/chrome/browser/extensions/api/serial/serial_api.h
index f541c4105bc2d9ccab82ff68c8a31abcf9dc318c..d79c43db4320ff5d731ec7bf7e9203a7ed17ee84 100644
--- a/chrome/browser/extensions/api/serial/serial_api.h
+++ b/chrome/browser/extensions/api/serial/serial_api.h
@@ -8,9 +8,9 @@
#include <string>
#include "base/memory/ref_counted.h"
-#include "chrome/browser/extensions/api/api_function.h"
#include "chrome/browser/extensions/api/api_resource_manager.h"
#include "chrome/common/extensions/api/serial.h"
+#include "extensions/browser/api/async_api_function.h"
namespace extensions {
@@ -74,12 +74,12 @@ class SerialConnectFunction : public SerialAsyncApiFunction {
scoped_ptr<serial::Connect::Params> params_;
- // SerialEventDispatcher is owned by a Profile.
+ // SerialEventDispatcher is owned by a BrowserContext.
SerialEventDispatcher* serial_event_dispatcher_;
// This connection is created within SerialConnectFunction.
// From there it is either destroyed in OnConnected (upon failure)
- // or its ownership is transferred to the profile's.
+ // or its ownership is transferred to the browser context's.
Yoyo Zhou 2014/02/27 23:53:46 nit: the 's here looks extraneous
// ApiResourceManager<SerialConnection>.
SerialConnection* connection_;
};

Powered by Google App Engine
This is Rietveld 408576698