public content::NotificationObserver {
public:
explicit NewTabUI(content::WebUI* web_ui);
- virtual ~NewTabUI();
+ ~NewTabUI() override;
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
static int current_pref_version() { return current_pref_version_; }
// WebUIController implementation:
- virtual void RenderViewCreated(
- content::RenderViewHost* render_view_host) OVERRIDE;
- virtual void RenderViewReused(
- content::RenderViewHost* render_view_host) OVERRIDE;
+ void RenderViewCreated(content::RenderViewHost* render_view_host) override;
+ void RenderViewReused(content::RenderViewHost* render_view_host) override;
// WebContentsObserver implementation:
- virtual void WasHidden() OVERRIDE;
+ void WasHidden() override;
bool showing_sync_bubble() { return showing_sync_bubble_; }
void set_showing_sync_bubble(bool showing) { showing_sync_bubble_ = showing; }
class NewTabHTMLSource : public content::URLDataSource {
public:
explicit NewTabHTMLSource(Profile* profile);
- virtual ~NewTabHTMLSource();
+ ~NewTabHTMLSource() override;
// content::URLDataSource implementation.
- virtual std::string GetSource() const OVERRIDE;
- virtual void StartDataRequest(
+ std::string GetSource() const override;
+ void StartDataRequest(
const std::string& path,
int render_process_id,
int render_frame_id,
- const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
- virtual std::string GetMimeType(const std::string&) const OVERRIDE;
- virtual bool ShouldReplaceExistingSource() const OVERRIDE;
- virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE;
+ const content::URLDataSource::GotDataCallback& callback) override;
+ std::string GetMimeType(const std::string&) const override;
+ bool ShouldReplaceExistingSource() const override;
+ bool ShouldAddContentSecurityPolicy() const override;
// Adds |resource| to the source. |resource_id| is resource id or 0,
// which means return empty data set. |mime_type| is mime type of the
FRIEND_TEST_ALL_PREFIXES(NewTabUITest, UpdateUserPrefsVersion);
// 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;
// If |web_contents| has an NTP URL, emits a number of NTP statistics (like
// mouseovers counts) associated with |web_contents|, to be logged in UMA