| Index: chrome/browser/spellchecker/spellcheck_profile.cc
|
| ===================================================================
|
| --- chrome/browser/spellchecker/spellcheck_profile.cc (revision 108048)
|
| +++ chrome/browser/spellchecker/spellcheck_profile.cc (working copy)
|
| @@ -50,13 +50,13 @@
|
| 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;
|
| }
|
|
|
|
|