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

Unified Diff: components/copresence/mediums/audio/audio_manager_impl.cc

Issue 870053008: 64-bit token fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Whispernet test Created 5 years, 11 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
« no previous file with comments | « components/copresence/mediums/audio/audio_manager_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/mediums/audio/audio_manager_impl.cc
diff --git a/components/copresence/mediums/audio/audio_manager_impl.cc b/components/copresence/mediums/audio/audio_manager_impl.cc
index 0a147ad65d904a29b4be16726af41460c4bd3fec..04d357c41925183d9355ee9d7cc22c425f469410 100644
--- a/components/copresence/mediums/audio/audio_manager_impl.cc
+++ b/components/copresence/mediums/audio/audio_manager_impl.cc
@@ -53,6 +53,8 @@ AudioManagerImpl::AudioManagerImpl()
player_[AUDIBLE] = nullptr;
player_[INAUDIBLE] = nullptr;
+ token_length_[0] = 0;
+ token_length_[1] = 0;
}
void AudioManagerImpl::Initialize(WhispernetClient* whispernet_client,
@@ -140,9 +142,9 @@ void AudioManagerImpl::StopRecording(AudioType type) {
}
void AudioManagerImpl::SetToken(AudioType type,
- const std::string& url_unsafe_token) {
+ const std::string& url_safe_token) {
DCHECK(type == AUDIBLE || type == INAUDIBLE);
- std::string token = FromUrlSafe(url_unsafe_token);
+ std::string token = FromUrlSafe(url_safe_token);
if (!samples_cache_[type]->HasKey(token)) {
whispernet_client_->EncodeToken(token, type);
} else {
« no previous file with comments | « components/copresence/mediums/audio/audio_manager_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698