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

Unified Diff: chrome/browser/extensions/api/api_function.cc

Issue 10134008: Add bind(), recvFrom(), sendTo() for UDP socket. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reenable api tests Created 8 years, 8 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/api_function.cc
diff --git a/chrome/browser/extensions/api/api_function.cc b/chrome/browser/extensions/api/api_function.cc
index bfc27911865d0b8518f96bd1e0ccc8df72e093dd..dfc5480ba815db7b444b74788b168913083a09a6 100644
--- a/chrome/browser/extensions/api/api_function.cc
+++ b/chrome/browser/extensions/api/api_function.cc
@@ -47,8 +47,9 @@ int AsyncIOAPIFunction::ExtractSrcId(size_t argument_position) {
scoped_ptr<DictionaryValue> options(new DictionaryValue());
if (args_->GetSize() > argument_position) {
DictionaryValue* temp_options = NULL;
- if (args_->GetDictionary(argument_position, &temp_options))
+ if (args_->GetDictionary(argument_position, &temp_options)) {
options.reset(temp_options->DeepCopy());
+ }
miket_OOO 2012/04/24 20:49:06 This seems to be a leftover from debugging.
Peng 2012/04/24 21:13:47 Done.
}
// If we tacked on a srcId to the options object, pull it out here to provide

Powered by Google App Engine
This is Rietveld 408576698