Skip to content

Commit

Permalink
headless: Add out-of-line copy ctors for complex classes.
Browse files Browse the repository at this point in the history
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
[email protected], [email protected], [email protected]

BUG=

Review URL: https://codereview.chromium.org/1869903002

Cr-Commit-Position: refs/heads/master@{#386152}
  • Loading branch information
vmpstr authored and Commit bot committed Apr 8, 2016
1 parent 3e1eacc commit a7055ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions headless/public/headless_browser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Options::Options(int argc, const char** argv)
user_agent(content::BuildUserAgentFromProduct(kProductName)),
message_pump(nullptr) {}

Options::Options(const Options& other) = default;

Options::~Options() {}

Builder::Builder(int argc, const char** argv) : options_(argc, argv) {}
Expand Down
1 change: 1 addition & 0 deletions headless/public/headless_browser.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class HEADLESS_EXPORT HeadlessBrowser {

// Embedding API overrides for the headless browser.
struct HeadlessBrowser::Options {
Options(const Options& other);
~Options();

class Builder;
Expand Down

0 comments on commit a7055ab

Please sign in to comment.