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

Unified Diff: content/browser/speech/google_one_shot_remote_engine.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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: content/browser/speech/google_one_shot_remote_engine.cc
diff --git a/content/browser/speech/google_one_shot_remote_engine.cc b/content/browser/speech/google_one_shot_remote_engine.cc
index cdd6b104c89e8d54a97bb80370aa402fe27acc61..97743c9f94a187bf51cd9802f9b5119fafcaf8f3 100644
--- a/content/browser/speech/google_one_shot_remote_engine.cc
+++ b/content/browser/speech/google_one_shot_remote_engine.cc
@@ -4,6 +4,9 @@
#include "content/browser/speech/google_one_shot_remote_engine.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <vector>
#include "base/json/json_reader.h"
@@ -247,7 +250,7 @@ void GoogleOneShotRemoteEngine::AudioChunksEnded() {
size_t sample_count =
config_.audio_sample_rate * kAudioPacketIntervalMs / 1000;
scoped_refptr<AudioChunk> dummy_chunk(new AudioChunk(
- sample_count * sizeof(int16), encoder_->GetBitsPerSample() / 8));
+ sample_count * sizeof(int16_t), encoder_->GetBitsPerSample() / 8));
encoder_->Encode(*dummy_chunk.get());
encoder_->Flush();
scoped_refptr<AudioChunk> encoded_dummy_data(
« no previous file with comments | « content/browser/speech/google_one_shot_remote_engine.h ('k') | content/browser/speech/google_streaming_remote_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698