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

Unified Diff: ppapi/examples/audio_input/audio_input.cc

Issue 9615050: Remove NewRequiredCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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: ppapi/examples/audio_input/audio_input.cc
diff --git a/ppapi/examples/audio_input/audio_input.cc b/ppapi/examples/audio_input/audio_input.cc
index 203718e4047944b170420d01de0c58bb0d169304..4e1360e45df199d1c2a17722db137648e2253daf 100644
--- a/ppapi/examples/audio_input/audio_input.cc
+++ b/ppapi/examples/audio_input/audio_input.cc
@@ -80,7 +80,7 @@ class MyInstance : public pp::Instance {
PP_DCHECK(timer_interval_ > 0);
pp::Module::Get()->core()->CallOnMainThread(
timer_interval_,
- callback_factory_.NewRequiredCallback(&MyInstance::OnTimer),
+ callback_factory_.NewCallback(&MyInstance::OnTimer),
0);
}
@@ -111,7 +111,7 @@ class MyInstance : public pp::Instance {
device_context_.ReplaceContents(&image);
waiting_for_flush_completion_ = true;
device_context_.Flush(
- callback_factory_.NewRequiredCallback(&MyInstance::DidFlush));
+ callback_factory_.NewCallback(&MyInstance::DidFlush));
}
}
« no previous file with comments | « no previous file | ppapi/examples/flash_topmost/flash_topmost.cc » ('j') | ppapi/utility/completion_callback_factory.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698