summaryrefslogtreecommitdiffstats
path: root/extensions/browser/app_window
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2016-02-26 17:21:52 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-27 01:23:32 +0000
commit3edc914481ff715869bd27903f2f9884e6d017da (patch)
tree2a63bf039e1c2d2768a9bb1955c77843d880b1e8 /extensions/browser/app_window
parentfa093a8177047c4275f104122b823950d1699d45 (diff)
downloadchromium_src-3edc914481ff715869bd27903f2f9884e6d017da.zip
chromium_src-3edc914481ff715869bd27903f2f9884e6d017da.tar.gz
chromium_src-3edc914481ff715869bd27903f2f9884e6d017da.tar.bz2
extensions: Add out-of-line copy ctors for complex classes.
This patch adds out of line copy constructors for classes that our clang-plugin considers heavy. This is an effort to enable copy constructor checks by default. BUG=436357 R=reillyg@chromium.org, dcheng@chromium.org, thakis@chromium.org Review URL: https://codereview.chromium.org/1724293002 Cr-Commit-Position: refs/heads/master@{#378054}
Diffstat (limited to 'extensions/browser/app_window')
-rw-r--r--extensions/browser/app_window/app_window.cc2
-rw-r--r--extensions/browser/app_window/app_window.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc
index 5bb73e6..0c0a45b 100644
--- a/extensions/browser/app_window/app_window.cc
+++ b/extensions/browser/app_window/app_window.cc
@@ -174,6 +174,8 @@ AppWindow::CreateParams::CreateParams()
visible_on_all_workspaces(false) {
}
+AppWindow::CreateParams::CreateParams(const CreateParams& other) = default;
+
AppWindow::CreateParams::~CreateParams() {}
gfx::Rect AppWindow::CreateParams::GetInitialWindowBounds(
diff --git a/extensions/browser/app_window/app_window.h b/extensions/browser/app_window/app_window.h
index 59d8463..6917c4d 100644
--- a/extensions/browser/app_window/app_window.h
+++ b/extensions/browser/app_window/app_window.h
@@ -145,6 +145,7 @@ class AppWindow : public content::WebContentsDelegate,
struct CreateParams {
CreateParams();
+ CreateParams(const CreateParams& other);
~CreateParams();
WindowType window_type;