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

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: Address comments 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
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 6584def184cb974d3c6fd24be803b1c4987c44e2..ff24f23bcfe0870de893f03ed9b7e5658640d00e 100644
--- a/components/autofill/browser/autofill_manager_unittest.cc
+++ b/components/autofill/browser/autofill_manager_unittest.cc
@@ -650,6 +650,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() {

Powered by Google App Engine
This is Rietveld 408576698