]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix cpplint warning
authorCheng Zhao <zcbenz@gmail.com>
Wed, 8 Oct 2014 09:47:47 +0000 (17:47 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 8 Oct 2014 09:47:47 +0000 (17:47 +0800)
atom/browser/atom_speech_recognition_manager_delegate.cc
atom/browser/atom_speech_recognition_manager_delegate.h

index e0acb1d64c619835feb3afa9f5a7c70f5a38c10a..d30738ad9199e4702c5388755fa4aa2e52f692d2 100644 (file)
@@ -4,6 +4,8 @@
 
 #include "atom/browser/atom_speech_recognition_manager_delegate.h"
 
+#include <string>
+
 #include "base/callback.h"
 
 namespace atom {
@@ -50,6 +52,7 @@ void AtomSpeechRecognitionManagerDelegate::OnAudioLevelsChange(
 
 void AtomSpeechRecognitionManagerDelegate::GetDiagnosticInformation(
     bool* can_report_metrics, std::string* hardware_info) {
+  *can_report_metrics = false;
 }
 
 void AtomSpeechRecognitionManagerDelegate::CheckRecognitionIsAllowed(
index 325c99ad982dc1ea9abf5636b9c5cf02abfe5ad1..16fe3f156f18e7ac10e87f78b440c6c229081762 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef ATOM_BROWSER_ATOM_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
 #define ATOM_BROWSER_ATOM_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
 
+#include <string>
+
 #include "content/public/browser/speech_recognition_event_listener.h"
 #include "content/public/browser/speech_recognition_manager_delegate.h"