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

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

Issue 8432027: NOT FOR REVIEW: quick hacks for http://codereview.chromium.org/7919003/ Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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
===================================================================
--- 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;
}
« 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