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

Unified Diff: chrome/browser/protector/protector.cc

Issue 8384036: Delete GlobarError and Protector only after the error was removed from global list. (Closed) 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
« no previous file with comments | « chrome/browser/protector/protector.h ('k') | chrome/browser/protector/settings_change_global_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/protector/protector.cc
===================================================================
--- chrome/browser/protector/protector.cc (revision 108092)
+++ chrome/browser/protector/protector.cc (working copy)
@@ -57,13 +57,16 @@
OnChangesAction(&SettingChange::DoDefault);
}
+void Protector::OnRemovedFromProfile() {
+ BrowserThread::DeleteSoon(BrowserThread::UI, FROM_HERE, this);
+}
+
void Protector::OnChangesAction(SettingChangeAction action) {
DCHECK(error_.get());
SettingChangeVector* changes = error_->mutable_changes();
for (SettingChangeVector::iterator it = changes->begin();
it != changes->end(); ++it)
((*it)->*action)(this);
- BrowserThread::DeleteSoon(BrowserThread::UI, FROM_HERE, this);
}
« no previous file with comments | « chrome/browser/protector/protector.h ('k') | chrome/browser/protector/settings_change_global_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698