Browse Source

Fix cpplint warning

Cheng Zhao 10 years ago
parent
commit
0c349c047d

+ 3 - 0
atom/browser/atom_speech_recognition_manager_delegate.cc

@@ -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(

+ 2 - 0
atom/browser/atom_speech_recognition_manager_delegate.h

@@ -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"