Index: chrome/browser/speech/chrome_speech_recognition_preferences.cc |
diff --git a/chrome/browser/speech/chrome_speech_recognition_preferences.cc b/chrome/browser/speech/chrome_speech_recognition_preferences.cc |
index d062a9014da9d2107ae9069bf13bf1cce3a481f7..62be83ad55187e3ffa2841afdc9994690fd38772 100644 |
--- a/chrome/browser/speech/chrome_speech_recognition_preferences.cc |
+++ b/chrome/browser/speech/chrome_speech_recognition_preferences.cc |
@@ -97,7 +97,7 @@ ChromeSpeechRecognitionPreferences::Service::~Service() { |
} |
void ChromeSpeechRecognitionPreferences::Service::Shutdown() { |
- DCHECK(preferences_); |
+ DCHECK(preferences_.get()); |
preferences_->DetachFromProfile(); |
} |
@@ -115,7 +115,7 @@ ChromeSpeechRecognitionPreferences::GetForProfile(Profile* profile) { |
ret = Factory::GetInstance()->GetForProfile(profile); |
} |
- if (!ret) { |
+ if (!ret.get()) { |
// Create a detached preferences object if no profile is provided. |
ret = new ChromeSpeechRecognitionPreferences(NULL); |
} |