summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/shell/browser/shell_javascript_dialog_win.cc2
-rw-r--r--extensions/browser/api/bluetooth_socket/bluetooth_api_socket.cc3
-rw-r--r--media/blink/buffered_data_source.cc2
-rw-r--r--media/filters/chunk_demuxer.cc2
4 files changed, 5 insertions, 4 deletions
diff --git a/content/shell/browser/shell_javascript_dialog_win.cc b/content/shell/browser/shell_javascript_dialog_win.cc
index d7da87a..562194a 100644
--- a/content/shell/browser/shell_javascript_dialog_win.cc
+++ b/content/shell/browser/shell_javascript_dialog_win.cc
@@ -44,7 +44,7 @@ INT_PTR CALLBACK ShellJavaScriptDialog::DialogProc(HWND dialog,
GetWindowLongPtr(dialog, DWLP_USER));
base::string16 user_input;
bool finish = false;
- bool result;
+ bool result = false;
switch (LOWORD(wparam)) {
case IDOK:
finish = true;
diff --git a/extensions/browser/api/bluetooth_socket/bluetooth_api_socket.cc b/extensions/browser/api/bluetooth_socket/bluetooth_api_socket.cc
index 9bee22d..c1a400463 100644
--- a/extensions/browser/api/bluetooth_socket/bluetooth_api_socket.cc
+++ b/extensions/browser/api/bluetooth_socket/bluetooth_api_socket.cc
@@ -129,7 +129,8 @@ void BluetoothApiSocket::OnSocketReceiveError(
device::BluetoothSocket::ErrorReason reason,
const std::string& message) {
DCHECK_CURRENTLY_ON(kThreadId);
- BluetoothApiSocket::ErrorReason error_reason;
+ BluetoothApiSocket::ErrorReason error_reason =
+ BluetoothApiSocket::kSystemError;
switch (reason) {
case device::BluetoothSocket::kIOPending:
error_reason = BluetoothApiSocket::kIOPending;
diff --git a/media/blink/buffered_data_source.cc b/media/blink/buffered_data_source.cc
index c6e11a6..b26f0f1 100644
--- a/media/blink/buffered_data_source.cc
+++ b/media/blink/buffered_data_source.cc
@@ -541,7 +541,7 @@ void BufferedDataSource::LoadingStateChangedCallback(
if (assume_fully_buffered())
return;
- bool is_downloading_data;
+ bool is_downloading_data = false;
switch (state) {
case BufferedResourceLoader::kLoading:
is_downloading_data = true;
diff --git a/media/filters/chunk_demuxer.cc b/media/filters/chunk_demuxer.cc
index 374d618..1afbc6d 100644
--- a/media/filters/chunk_demuxer.cc
+++ b/media/filters/chunk_demuxer.cc
@@ -295,7 +295,7 @@ void ChunkDemuxerStream::CompletePendingReadIfPossible_Locked() {
lock_.AssertAcquired();
DCHECK(!read_cb_.is_null());
- DemuxerStream::Status status;
+ DemuxerStream::Status status = DemuxerStream::kAborted;
scoped_refptr<StreamParserBuffer> buffer;
switch (state_) {