summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/app_lifetime_monitor.h16
-rw-r--r--apps/app_lifetime_monitor_factory.h10
-rw-r--r--apps/app_load_service.h10
-rw-r--r--apps/app_load_service_factory.h10
-rw-r--r--apps/app_restore_service.h14
-rw-r--r--apps/app_restore_service_factory.h6
-rw-r--r--apps/custom_launcher_page_contents.h55
-rw-r--r--apps/load_and_launch_browsertest.cc2
-rw-r--r--apps/saved_files_service.h8
-rw-r--r--apps/saved_files_service_factory.h4
10 files changed, 64 insertions, 71 deletions
diff --git a/apps/app_lifetime_monitor.h b/apps/app_lifetime_monitor.h
index dfaebef..8f079fe 100644
--- a/apps/app_lifetime_monitor.h
+++ b/apps/app_lifetime_monitor.h
@@ -49,24 +49,24 @@ class AppLifetimeMonitor : public KeyedService,
};
explicit AppLifetimeMonitor(Profile* profile);
- virtual ~AppLifetimeMonitor();
+ ~AppLifetimeMonitor() override;
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
private:
// content::NotificationObserver overrides:
- 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::AppWindowRegistry::Observer overrides:
- virtual void OnAppWindowRemoved(extensions::AppWindow* app_window) override;
- virtual void OnAppWindowHidden(extensions::AppWindow* app_window) override;
- virtual void OnAppWindowShown(extensions::AppWindow* app_window) override;
+ void OnAppWindowRemoved(extensions::AppWindow* app_window) override;
+ void OnAppWindowHidden(extensions::AppWindow* app_window) override;
+ void OnAppWindowShown(extensions::AppWindow* app_window) override;
// KeyedService overrides:
- virtual void Shutdown() override;
+ void Shutdown() override;
bool HasVisibleAppWindows(extensions::AppWindow* app_window) const;
diff --git a/apps/app_lifetime_monitor_factory.h b/apps/app_lifetime_monitor_factory.h
index 466c8ed..1df284b 100644
--- a/apps/app_lifetime_monitor_factory.h
+++ b/apps/app_lifetime_monitor_factory.h
@@ -27,14 +27,14 @@ class AppLifetimeMonitorFactory : public BrowserContextKeyedServiceFactory {
friend struct DefaultSingletonTraits<AppLifetimeMonitorFactory>;
AppLifetimeMonitorFactory();
- virtual ~AppLifetimeMonitorFactory();
+ ~AppLifetimeMonitorFactory() override;
// BrowserContextKeyedServiceFactory:
- virtual KeyedService* BuildServiceInstanceFor(
+ KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override;
- virtual bool ServiceIsCreatedWithBrowserContext() const override;
- virtual content::BrowserContext* GetBrowserContextToUse(
- content::BrowserContext* context) const override;
+ bool ServiceIsCreatedWithBrowserContext() const override;
+ content::BrowserContext* GetBrowserContextToUse(
+ content::BrowserContext* context) const override;
};
} // namespace apps
diff --git a/apps/app_load_service.h b/apps/app_load_service.h
index 566672e..aa9cc98 100644
--- a/apps/app_load_service.h
+++ b/apps/app_load_service.h
@@ -44,7 +44,7 @@ class AppLoadService : public KeyedService,
};
explicit AppLoadService(Profile* profile);
- virtual ~AppLoadService();
+ ~AppLoadService() override;
// Reload the application with the given id and then send it the OnRestarted
// event.
@@ -65,12 +65,12 @@ class AppLoadService : public KeyedService,
private:
// content::NotificationObserver.
- 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.
- virtual void OnExtensionUnloaded(
+ void OnExtensionUnloaded(
content::BrowserContext* browser_context,
const extensions::Extension* extension,
extensions::UnloadedExtensionInfo::Reason reason) override;
diff --git a/apps/app_load_service_factory.h b/apps/app_load_service_factory.h
index fec014c..68fa7db 100644
--- a/apps/app_load_service_factory.h
+++ b/apps/app_load_service_factory.h
@@ -24,14 +24,14 @@ class AppLoadServiceFactory : public BrowserContextKeyedServiceFactory {
friend struct DefaultSingletonTraits<AppLoadServiceFactory>;
AppLoadServiceFactory();
- virtual ~AppLoadServiceFactory();
+ ~AppLoadServiceFactory() override;
// BrowserContextKeyedServiceFactory:
- virtual KeyedService* BuildServiceInstanceFor(
+ KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override;
- virtual bool ServiceIsCreatedWithBrowserContext() const override;
- virtual bool ServiceIsNULLWhileTesting() const override;
- virtual content::BrowserContext* GetBrowserContextToUse(
+ bool ServiceIsCreatedWithBrowserContext() const override;
+ bool ServiceIsNULLWhileTesting() const override;
+ content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override;
};
diff --git a/apps/app_restore_service.h b/apps/app_restore_service.h
index 5738b05..fec9ed7 100644
--- a/apps/app_restore_service.h
+++ b/apps/app_restore_service.h
@@ -42,16 +42,14 @@ class AppRestoreService : public KeyedService,
private:
// AppLifetimeMonitor::Observer.
- virtual void OnAppStart(Profile* profile, const std::string& app_id) override;
- virtual void OnAppActivated(Profile* profile,
- const std::string& app_id) override;
- virtual void OnAppDeactivated(Profile* profile,
- const std::string& app_id) override;
- virtual void OnAppStop(Profile* profile, const std::string& app_id) override;
- virtual void OnChromeTerminating() override;
+ void OnAppStart(Profile* profile, const std::string& app_id) override;
+ void OnAppActivated(Profile* profile, const std::string& app_id) override;
+ void OnAppDeactivated(Profile* profile, const std::string& app_id) override;
+ void OnAppStop(Profile* profile, const std::string& app_id) override;
+ void OnChromeTerminating() override;
// KeyedService.
- virtual void Shutdown() override;
+ void Shutdown() override;
void RecordAppStart(const std::string& extension_id);
void RecordAppStop(const std::string& extension_id);
diff --git a/apps/app_restore_service_factory.h b/apps/app_restore_service_factory.h
index 676d4c2..0c5189b 100644
--- a/apps/app_restore_service_factory.h
+++ b/apps/app_restore_service_factory.h
@@ -27,12 +27,12 @@ class AppRestoreServiceFactory : public BrowserContextKeyedServiceFactory {
friend struct DefaultSingletonTraits<AppRestoreServiceFactory>;
AppRestoreServiceFactory();
- virtual ~AppRestoreServiceFactory();
+ ~AppRestoreServiceFactory() override;
// BrowserContextKeyedServiceFactory:
- virtual KeyedService* BuildServiceInstanceFor(
+ KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override;
- virtual bool ServiceIsCreatedWithBrowserContext() const override;
+ bool ServiceIsCreatedWithBrowserContext() const override;
};
} // namespace apps
diff --git a/apps/custom_launcher_page_contents.h b/apps/custom_launcher_page_contents.h
index 8465a05..d3140e6 100644
--- a/apps/custom_launcher_page_contents.h
+++ b/apps/custom_launcher_page_contents.h
@@ -34,7 +34,7 @@ class CustomLauncherPageContents
public:
CustomLauncherPageContents(scoped_ptr<extensions::AppDelegate> app_delegate,
const std::string& extension_id);
- virtual ~CustomLauncherPageContents();
+ ~CustomLauncherPageContents() override;
// Called to initialize and load the WebContents.
void Initialize(content::BrowserContext* context, const GURL& url);
@@ -42,48 +42,43 @@ class CustomLauncherPageContents
content::WebContents* web_contents() const { return web_contents_.get(); }
// content::WebContentsDelegate overrides:
- virtual content::WebContents* OpenURLFromTab(
+ content::WebContents* OpenURLFromTab(
content::WebContents* source,
const content::OpenURLParams& params) override;
- virtual void AddNewContents(content::WebContents* source,
- content::WebContents* new_contents,
- WindowOpenDisposition disposition,
- const gfx::Rect& initial_pos,
- bool user_gesture,
- bool* was_blocked) override;
- virtual bool IsPopupOrPanel(
- const content::WebContents* source) const override;
- virtual bool ShouldSuppressDialogs() override;
- virtual bool PreHandleGestureEvent(
- content::WebContents* source,
- const blink::WebGestureEvent& event) override;
- virtual content::ColorChooser* OpenColorChooser(
+ void AddNewContents(content::WebContents* source,
+ content::WebContents* new_contents,
+ WindowOpenDisposition disposition,
+ const gfx::Rect& initial_pos,
+ bool user_gesture,
+ bool* was_blocked) override;
+ bool IsPopupOrPanel(const content::WebContents* source) const override;
+ bool ShouldSuppressDialogs() override;
+ bool PreHandleGestureEvent(content::WebContents* source,
+ const blink::WebGestureEvent& event) override;
+ content::ColorChooser* OpenColorChooser(
content::WebContents* web_contents,
SkColor color,
const std::vector<content::ColorSuggestion>& suggestions) override;
- virtual void RunFileChooser(
- content::WebContents* tab,
- const content::FileChooserParams& params) override;
- virtual void RequestToLockMouse(content::WebContents* web_contents,
- bool user_gesture,
- bool last_unlocked_by_target) override;
- virtual void RequestMediaAccessPermission(
+ void RunFileChooser(content::WebContents* tab,
+ const content::FileChooserParams& params) override;
+ void RequestToLockMouse(content::WebContents* web_contents,
+ bool user_gesture,
+ bool last_unlocked_by_target) override;
+ void RequestMediaAccessPermission(
content::WebContents* web_contents,
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback) override;
- virtual bool CheckMediaAccessPermission(
- content::WebContents* web_contents,
- const GURL& security_origin,
- content::MediaStreamType type) override;
+ bool CheckMediaAccessPermission(content::WebContents* web_contents,
+ const GURL& security_origin,
+ content::MediaStreamType type) override;
private:
// content::WebContentsObserver overrides:
- virtual bool OnMessageReceived(const IPC::Message& message) override;
+ bool OnMessageReceived(const IPC::Message& message) override;
// extensions::ExtensionFunctionDispatcher::Delegate overrides:
- virtual extensions::WindowController* GetExtensionWindowController()
- const override;
- virtual content::WebContents* GetAssociatedWebContents() const override;
+ extensions::WindowController* GetExtensionWindowController() const override;
+ content::WebContents* GetAssociatedWebContents() const override;
void OnRequest(const ExtensionHostMsg_Request_Params& params);
diff --git a/apps/load_and_launch_browsertest.cc b/apps/load_and_launch_browsertest.cc
index ced6564..f3573b8 100644
--- a/apps/load_and_launch_browsertest.cc
+++ b/apps/load_and_launch_browsertest.cc
@@ -109,7 +109,7 @@ class PlatformAppLoadAndLaunchBrowserTest : public PlatformAppBrowserTest {
protected:
PlatformAppLoadAndLaunchBrowserTest() {}
- virtual void SetUpCommandLine(CommandLine* command_line) override {
+ void SetUpCommandLine(CommandLine* command_line) override {
PlatformAppBrowserTest::SetUpCommandLine(command_line);
app_path_ = test_data_dir_
.AppendASCII("platform_apps")
diff --git a/apps/saved_files_service.h b/apps/saved_files_service.h
index d696c79..de1b1a2 100644
--- a/apps/saved_files_service.h
+++ b/apps/saved_files_service.h
@@ -60,7 +60,7 @@ class SavedFilesService : public KeyedService,
public content::NotificationObserver {
public:
explicit SavedFilesService(Profile* profile);
- virtual ~SavedFilesService();
+ ~SavedFilesService() override;
static SavedFilesService* Get(Profile* profile);
@@ -109,9 +109,9 @@ class SavedFilesService : public KeyedService,
class SavedFiles;
// content::NotificationObserver.
- 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;
// Returns the SavedFiles for |extension_id| or NULL if one does not exist.
SavedFiles* Get(const std::string& extension_id) const;
diff --git a/apps/saved_files_service_factory.h b/apps/saved_files_service_factory.h
index 7d4c15c..b7f4715 100644
--- a/apps/saved_files_service_factory.h
+++ b/apps/saved_files_service_factory.h
@@ -23,10 +23,10 @@ class SavedFilesServiceFactory : public BrowserContextKeyedServiceFactory {
private:
SavedFilesServiceFactory();
- virtual ~SavedFilesServiceFactory();
+ ~SavedFilesServiceFactory() override;
friend struct DefaultSingletonTraits<SavedFilesServiceFactory>;
- virtual KeyedService* BuildServiceInstanceFor(
+ KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const override;
};