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

Unified Diff: extensions/browser/api_unittest.cc

Issue 1864583006: Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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 | « extensions/browser/api_unittest.h ('k') | extensions/browser/content_hash_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api_unittest.cc
diff --git a/extensions/browser/api_unittest.cc b/extensions/browser/api_unittest.cc
index ada00c015061d937c2ee0f9c75e44e5edfbc5fde..2ca5e16fa23c1104ef035387d4d4e784bfa5b387 100644
--- a/extensions/browser/api_unittest.cc
+++ b/extensions/browser/api_unittest.cc
@@ -53,6 +53,12 @@ void ApiUnitTest::SetUp() {
.Build();
}
+void ApiUnitTest::TearDown() {
+ extension_ = nullptr;
+ contents_.reset();
+ ExtensionsTest::TearDown();
+}
+
void ApiUnitTest::CreateBackgroundPage() {
if (!contents_) {
GURL url = BackgroundInfo::GetBackgroundURL(extension());
« no previous file with comments | « extensions/browser/api_unittest.h ('k') | extensions/browser/content_hash_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698