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

Unified Diff: components/autofill/browser/autofill_manager_unittest.cc

Issue 12476031: Refactor notifications of chrome/browser/webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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/test/base/thread_observer_helper.h ('k') | components/autofill/browser/autofill_metrics_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/browser/autofill_manager_unittest.cc
diff --git a/components/autofill/browser/autofill_manager_unittest.cc b/components/autofill/browser/autofill_manager_unittest.cc
index 2f9e5f528cd3f44a6be00133aa81048e51aa6747..e88906bd3def330699d20291aabd5124640ac079 100644
--- a/components/autofill/browser/autofill_manager_unittest.cc
+++ b/components/autofill/browser/autofill_manager_unittest.cc
@@ -706,6 +706,10 @@ class AutofillManagerTest : public ChromeRenderViewHostTestHarness {
file_thread_.Stop();
ChromeRenderViewHostTestHarness::TearDown();
io_thread_.Stop();
+
+ // Remove the BrowserContext so TestPersonalDataManager does not need to
+ // care about removing self as an observer in destruction.
+ personal_data_.SetBrowserContext(NULL);
}
virtual TestingProfile* CreateProfile() {
« no previous file with comments | « chrome/test/base/thread_observer_helper.h ('k') | components/autofill/browser/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698