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

Unified Diff: chrome/browser/extensions/api/browsing_data/browsing_data_test.cc

Issue 2504943002: Remove the "one at a time" restriction from the browsingData API (Closed)
Patch Set: Created 4 years, 1 month 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/extensions/api/browsing_data/browsing_data_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/browsing_data/browsing_data_test.cc
diff --git a/chrome/browser/extensions/api/browsing_data/browsing_data_test.cc b/chrome/browser/extensions/api/browsing_data/browsing_data_test.cc
index 394a4f3b255ff5396115775ef7207843550ab35e..b78badeecd0eeb13121a0829c288e4d80b25f076 100644
--- a/chrome/browser/extensions/api/browsing_data/browsing_data_test.cc
+++ b/chrome/browser/extensions/api/browsing_data/browsing_data_test.cc
@@ -250,22 +250,6 @@ class ExtensionBrowsingDataTest : public InProcessBrowserTest {
} // namespace
-IN_PROC_BROWSER_TEST_F(ExtensionBrowsingDataTest, OneAtATime) {
- BrowsingDataRemover* browsing_data_remover =
- BrowsingDataRemoverFactory::GetForBrowserContext(browser()->profile());
- browsing_data_remover->SetRemoving(true);
- scoped_refptr<BrowsingDataRemoveFunction> function =
- new BrowsingDataRemoveFunction();
- EXPECT_TRUE(base::MatchPattern(
- RunFunctionAndReturnError(function.get(), kRemoveEverythingArguments,
- browser()),
- extension_browsing_data_api_constants::kOneAtATimeError));
- browsing_data_remover->SetRemoving(false);
-
- EXPECT_EQ(base::Time(), GetBeginTime());
- EXPECT_EQ(-1, GetRemovalMask());
-}
-
IN_PROC_BROWSER_TEST_F(ExtensionBrowsingDataTest, RemovalProhibited) {
PrefService* prefs = browser()->profile()->GetPrefs();
prefs->SetBoolean(prefs::kAllowDeletingBrowserHistory, false);
« no previous file with comments | « chrome/browser/extensions/api/browsing_data/browsing_data_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698