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

Unified Diff: chrome/browser/spellchecker/spellcheck_profile.cc

Issue 7919003: Remove refptr usages from SpellCheckHost (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix pointer returns. Update tests. Created 9 years, 2 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
Index: chrome/browser/spellchecker/spellcheck_profile.cc
diff --git a/chrome/browser/spellchecker/spellcheck_profile.cc b/chrome/browser/spellchecker/spellcheck_profile.cc
index dd79b96df26c7b3bc7693640c05221f625564f34..22128d30578dee371d93a02e1cfd257e4a78a522 100644
--- a/chrome/browser/spellchecker/spellcheck_profile.cc
+++ b/chrome/browser/spellchecker/spellcheck_profile.cc
@@ -45,13 +45,13 @@ SpellCheckProfile::ReinitializeResult SpellCheckProfile::ReinitializeHost(
bool host_deleted = false;
if (host_.get()) {
host_->UnsetProfile();
- host_ = NULL;
+ host_.reset();
host_deleted = true;
}
if (enable) {
// Retrieve the (perhaps updated recently) dictionary name from preferences.
- host_ = CreateHost(this, language, request_context, metrics_.get());
+ host_.reset(CreateHost(this, language, request_context, metrics_.get()));
return REINITIALIZE_CREATED_HOST;
}

Powered by Google App Engine
This is Rietveld 408576698