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

Unified Diff: chrome/browser/speech/chrome_speech_recognition_preferences.cc

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months 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
« no previous file with comments | « chrome/browser/signin/token_service.cc ('k') | chrome/browser/ssl/ssl_add_cert_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/browser/signin/token_service.cc ('k') | chrome/browser/ssl/ssl_add_cert_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698