diff options
author | vmpstr <vmpstr@chromium.org> | 2016-02-26 17:21:52 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-27 01:23:32 +0000 |
commit | 3edc914481ff715869bd27903f2f9884e6d017da (patch) | |
tree | 2a63bf039e1c2d2768a9bb1955c77843d880b1e8 /extensions/common/user_script.h | |
parent | fa093a8177047c4275f104122b823950d1699d45 (diff) | |
download | chromium_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/common/user_script.h')
-rw-r--r-- | extensions/common/user_script.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/common/user_script.h b/extensions/common/user_script.h index 8bf16bf..40ad330 100644 --- a/extensions/common/user_script.h +++ b/extensions/common/user_script.h @@ -80,6 +80,7 @@ class UserScript { const base::FilePath& relative_path, const GURL& url); File(); + File(const File& other); ~File(); const base::FilePath& extension_root() const { return extension_root_; } @@ -133,6 +134,7 @@ class UserScript { // Constructor. Default the run location to document end, which is like // Greasemonkey and probably more useful for typical scripts. UserScript(); + UserScript(const UserScript& other); ~UserScript(); const std::string& name_space() const { return name_space_; } |