summaryrefslogtreecommitdiffstats
path: root/remoting/host
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2016-02-26 13:46:54 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-26 21:49:14 +0000
commit83a7f26e6402938c9afe9c68d4a0bd82791614e8 (patch)
tree0de13568952b09edadd2507c8d395af3e4153c8e /remoting/host
parente4dd8cc726ed956556807025eb6808db2cd8b8cd (diff)
downloadchromium_src-83a7f26e6402938c9afe9c68d4a0bd82791614e8.zip
chromium_src-83a7f26e6402938c9afe9c68d4a0bd82791614e8.tar.gz
chromium_src-83a7f26e6402938c9afe9c68d4a0bd82791614e8.tar.bz2
remoting: 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=garykac@chromium.org, dcheng@chromium.org, thakis@chromium.org Review URL: https://codereview.chromium.org/1736633002 Cr-Commit-Position: refs/heads/master@{#377988}
Diffstat (limited to 'remoting/host')
-rw-r--r--remoting/host/setup/gaia_oauth_client.cc2
-rw-r--r--remoting/host/setup/gaia_oauth_client.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/remoting/host/setup/gaia_oauth_client.cc b/remoting/host/setup/gaia_oauth_client.cc
index 9855dd6..6daf95a 100644
--- a/remoting/host/setup/gaia_oauth_client.cc
+++ b/remoting/host/setup/gaia_oauth_client.cc
@@ -94,6 +94,8 @@ GaiaOAuthClient::Request::Request(
this->on_done = on_done;
}
+GaiaOAuthClient::Request::Request(const Request& other) = default;
+
GaiaOAuthClient::Request::~Request() {
}
diff --git a/remoting/host/setup/gaia_oauth_client.h b/remoting/host/setup/gaia_oauth_client.h
index 1af8ded..c963df3 100644
--- a/remoting/host/setup/gaia_oauth_client.h
+++ b/remoting/host/setup/gaia_oauth_client.h
@@ -60,6 +60,7 @@ class GaiaOAuthClient : public OAuthClient,
const std::string& auth_code,
bool need_user_email,
CompletionCallback on_done);
+ Request(const Request& other);
virtual ~Request();
gaia::OAuthClientInfo oauth_client_info;
std::string auth_code;