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

Unified Diff: components/copresence/handlers/directive_handler.cc

Issue 690213004: Refactoring AudioDirectiveHandler to support testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing crash Created 6 years, 2 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: components/copresence/handlers/directive_handler.cc
diff --git a/components/copresence/handlers/directive_handler.cc b/components/copresence/handlers/directive_handler.cc
index ae0bd306140bb3e7ba66a8200904aca353495e62..7282f9a1e5f05f2f0a4a73888b86a40984fc0215 100644
--- a/components/copresence/handlers/directive_handler.cc
+++ b/components/copresence/handlers/directive_handler.cc
@@ -6,7 +6,7 @@
#include "base/logging.h"
#include "base/time/time.h"
-#include "components/copresence/handlers/audio/audio_directive_handler.h"
+#include "components/copresence/handlers/audio/audio_directive_handler_impl.h"
#include "components/copresence/proto/data.pb.h"
namespace copresence {
@@ -16,7 +16,7 @@ DirectiveHandler::DirectiveHandler() {}
void DirectiveHandler::Initialize(
const AudioManager::DecodeSamplesCallback& decode_cb,
const AudioManager::EncodeTokenCallback& encode_cb) {
- audio_handler_.reset(new AudioDirectiveHandler());
+ audio_handler_.reset(new AudioDirectiveHandlerImpl);
audio_handler_->Initialize(decode_cb, encode_cb);
}

Powered by Google App Engine
This is Rietveld 408576698