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

Unified Diff: content/browser/indexed_db/indexed_db_database.cc

Issue 2433223002: Indexed DB: Remove experimental delete-returns-count change (Closed)
Patch Set: Created 4 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
Index: content/browser/indexed_db/indexed_db_database.cc
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc
index 10821c3c0b8c2f084a0a318e0468bdc57548cff8..511d3b6141cf555b543f35bc9e1842c52d7dd7a0 100644
--- a/content/browser/indexed_db/indexed_db_database.cc
+++ b/content/browser/indexed_db/indexed_db_database.cc
@@ -10,7 +10,6 @@
#include <set>
#include "base/auto_reset.h"
-#include "base/command_line.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
@@ -383,10 +382,7 @@ IndexedDBDatabase::IndexedDBDatabase(const base::string16& name,
IndexedDBDatabaseMetadata::NO_VERSION,
kInvalidId),
identifier_(unique_identifier),
- factory_(factory),
- experimental_web_platform_features_enabled_(
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableExperimentalWebPlatformFeatures)) {
+ factory_(factory) {
DCHECK(factory != NULL);
}
@@ -1838,11 +1834,7 @@ void IndexedDBDatabase::DeleteRangeOperation(
}
return;
}
- if (experimental_web_platform_features_enabled_) {
- callbacks->OnSuccess(base::checked_cast<int64_t>(delete_count));
- } else {
- callbacks->OnSuccess();
- }
+ callbacks->OnSuccess();
FilterObservation(transaction, object_store_id, blink::WebIDBDelete,
*key_range);
}

Powered by Google App Engine
This is Rietveld 408576698