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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover.cc

Issue 17294005: Clear the shader disk cache whenver we receive REMOVE_CACHE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: chrome/browser/browsing_data/browsing_data_remover.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover.cc b/chrome/browser/browsing_data/browsing_data_remover.cc
index 1b74264bfb570c6716858725ca29fcfe47b03226..5989c4c9a861f79b6ac42acd3e574d5f3bf28130 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover.cc
@@ -516,6 +516,12 @@ void BrowsingDataRemover::RemoveImpl(int remove_mask,
prerender_manager->ClearData(
prerender::PrerenderManager::CLEAR_PRERENDER_CONTENTS);
}
+
+ // Tell the shader disk cache to clear.
+ waiting_for_clear_shader_cache_ = true;
+ content::RecordAction(UserMetricsAction("ClearBrowsingData_ShaderCache"));
+
+ ClearShaderCacheOnUIThread();
}
#if defined(ENABLE_PLUGINS)
@@ -533,13 +539,6 @@ void BrowsingDataRemover::RemoveImpl(int remove_mask,
}
#endif
- if (remove_mask & REMOVE_SHADER_CACHE) {
- waiting_for_clear_shader_cache_ = true;
- content::RecordAction(UserMetricsAction("ClearBrowsingData_ShaderCache"));
-
- ClearShaderCacheOnUIThread();
- }
-
// Always wipe accumulated network related data (TransportSecurityState and
// HttpServerPropertiesManager data).
waiting_for_clear_networking_history_ = true;

Powered by Google App Engine
This is Rietveld 408576698