| Index: chrome/browser/spellchecker/spellcheck_profile.cc
|
| diff --git a/chrome/browser/spellchecker/spellcheck_profile.cc b/chrome/browser/spellchecker/spellcheck_profile.cc
|
| index d5c4de485c5593abdc503b55abec6682ce31d9fb..9874a2fe3019ec1ed59c0c5311c2bd6ccbe5c3fc 100644
|
| --- a/chrome/browser/spellchecker/spellcheck_profile.cc
|
| +++ b/chrome/browser/spellchecker/spellcheck_profile.cc
|
| @@ -50,13 +50,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;
|
| }
|
|
|
|
|