public:
BackgroundContentsService(Profile* profile,
const base::CommandLine* command_line);
- virtual ~BackgroundContentsService();
+ ~BackgroundContentsService() override;
// Allows tests to reduce the time between a force-installed app/extension
// crashing and when we reload it.
static void SetRestartDelayForForceInstalledAppsAndExtensionsForTesting(
int restart_delay_in_ms);
- // Get the crash notification's id for the extension.
- static std::string GetNotificationIdForExtensionForTesting(
+ // Get the crash notification's delegate id for the extension.
+ static std::string GetNotificationDelegateIdForExtensionForTesting(
const std::string& extension_id);
// Show a popup notification balloon with a crash message for a given app/
std::vector<BackgroundContents*> GetBackgroundContents() const;
// BackgroundContents::Delegate implementation.
- virtual void AddWebContents(content::WebContents* new_contents,
- WindowOpenDisposition disposition,
- const gfx::Rect& initial_pos,
- bool user_gesture,
- bool* was_blocked) OVERRIDE;
+ void AddWebContents(content::WebContents* new_contents,
+ WindowOpenDisposition disposition,
+ const gfx::Rect& initial_pos,
+ bool user_gesture,
+ bool* was_blocked) override;
// Gets the parent application id for the passed BackgroundContents. Returns
// an empty string if no parent application found (e.g. passed
void StartObserving(Profile* profile);
// content::NotificationObserver implementation.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) override;
// extensions::ExtensionRegistryObserver implementation.
- virtual void OnExtensionLoaded(
- content::BrowserContext* browser_context,
- const extensions::Extension* extension) OVERRIDE;
- virtual void OnExtensionUnloaded(
- content::BrowserContext* browser_context,
- const extensions::Extension* extension,
- extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE;
- virtual void OnExtensionUninstalled(
+ void OnExtensionLoaded(content::BrowserContext* browser_context,
+ const extensions::Extension* extension) override;
+ void OnExtensionUnloaded(
content::BrowserContext* browser_context,
const extensions::Extension* extension,
- extensions::UninstallReason reason) OVERRIDE;
+ extensions::UnloadedExtensionInfo::Reason reason) override;
+ void OnExtensionUninstalled(content::BrowserContext* browser_context,
+ const extensions::Extension* extension,
+ extensions::UninstallReason reason) override;
// Restarts a force-installed app/extension after a crash.
void RestartForceInstalledExtensionOnCrash(
const base::string16& appid);
// Invoked when a new BackgroundContents is opened.
- void BackgroundContentsOpened(BackgroundContentsOpenedDetails* details);
+ void BackgroundContentsOpened(BackgroundContentsOpenedDetails* details,
+ Profile* profile);
// Invoked when a BackgroundContents object is destroyed.
void BackgroundContentsShutdown(BackgroundContents* contents);