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

Unified Diff: extensions/browser/service_worker_manager.h

Issue 1432823003: Add a test to cover service worker update codepath when extension is updated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use set_force_update_on_page_load() + git cl format Created 5 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
Index: extensions/browser/service_worker_manager.h
diff --git a/extensions/browser/service_worker_manager.h b/extensions/browser/service_worker_manager.h
index 2ba3ad10e1a1b82260d8ca07eb65a47c4bae616b..92d8cdcd854333e5a352c7318f63fc582a5f01b5 100644
--- a/extensions/browser/service_worker_manager.h
+++ b/extensions/browser/service_worker_manager.h
@@ -28,6 +28,11 @@ class ServiceWorkerManager : public ExtensionRegistryObserver {
void OnExtensionUninstalled(content::BrowserContext* browser_context,
const Extension* extension,
extensions::UninstallReason reason) override;
+ void OnExtensionWillBeInstalled(content::BrowserContext* browser_context,
+ const Extension* extension,
+ bool is_update,
+ bool from_ephemeral,
+ const std::string& old_name) override;
content::BrowserContext* browser_context_;

Powered by Google App Engine
This is Rietveld 408576698