Commit b49e54ff authored by mblsha's avatar mblsha Committed by Commit bot

DISALLOW_COPY_AND_ASSIGN the TabStripModelObserver.

Disable the implicitly generated special functions that perform copies and moves
according to the Google C++ Style Guide.

BUG=None

Review-Url: https://codereview.chromium.org/2595313002
Cr-Commit-Position: refs/heads/master@{#442871}
parent d67aff2c
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
using content::WebContents; using content::WebContents;
TabStripModelObserver::TabStripModelObserver() {
}
void TabStripModelObserver::TabInsertedAt(TabStripModel* tab_strip_model, void TabStripModelObserver::TabInsertedAt(TabStripModel* tab_strip_model,
WebContents* contents, WebContents* contents,
int index, int index,
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_
#define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_
#include "base/macros.h"
class TabStripModel; class TabStripModel;
namespace content { namespace content {
...@@ -152,7 +154,11 @@ class TabStripModelObserver { ...@@ -152,7 +154,11 @@ class TabStripModelObserver {
virtual void CloseAllTabsCanceled(); virtual void CloseAllTabsCanceled();
protected: protected:
TabStripModelObserver();
virtual ~TabStripModelObserver() {} virtual ~TabStripModelObserver() {}
private:
DISALLOW_COPY_AND_ASSIGN(TabStripModelObserver);
}; };
#endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment