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

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: comments for new methods and vars Created 9 years, 1 month 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 dd148041fe330134f261ec429ce143f213a1a350..ecb6cb9e5b11daf8bc6b4dae948efa8294e57850 100644
--- a/chrome/browser/spellchecker/spellcheck_profile.cc
+++ b/chrome/browser/spellchecker/spellcheck_profile.cc
@@ -52,13 +52,13 @@ SpellCheckProfile::ReinitializeResult SpellCheckProfile::ReinitializeHost(
bool host_deleted = false;
if (host_.get()) {
host_->UnsetProfile();
- host_ = NULL;
+ host_.reset(NULL);
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;
}
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_profile.h ('k') | chrome/browser/spellchecker/spellcheck_profile_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698