diff options
author | thakis <thakis@chromium.org> | 2015-07-03 12:58:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-03 19:59:02 +0000 |
commit | f4c3e76906caa9d1fa308a30a15f48dd1f2e5a59 (patch) | |
tree | cb9664a52388400cb72115a79c761593c1d5ae86 /content/browser/background_sync | |
parent | df13f05dbaf57f1326f4597bfbd1b4eaaffe1437 (diff) | |
download | chromium_src-f4c3e76906caa9d1fa308a30a15f48dd1f2e5a59.zip chromium_src-f4c3e76906caa9d1fa308a30a15f48dd1f2e5a59.tar.gz chromium_src-f4c3e76906caa9d1fa308a30a15f48dd1f2e5a59.tar.bz2 |
Try to work around a clang/win bug.
It (incorrectly) complains:
..\..\content/browser/background_sync/background_sync_registration_options.h(21,11) : error: cannot use defaulted default constructor of 'BackgroundSyncRegistrationOptions' within the class outside of member functions because 'min_period' has an initializer
int64_t min_period = 0;
^
BUG=488634
TBR=jkarlin@chromium.org
NOTRY=true
Review URL: https://codereview.chromium.org/1215613006
Cr-Commit-Position: refs/heads/master@{#337326}
Diffstat (limited to 'content/browser/background_sync')
-rw-r--r-- | content/browser/background_sync/background_sync_registration_options.cc | 4 | ||||
-rw-r--r-- | content/browser/background_sync/background_sync_registration_options.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/background_sync/background_sync_registration_options.cc b/content/browser/background_sync/background_sync_registration_options.cc index 74b8bac..dc3d2e1 100644 --- a/content/browser/background_sync/background_sync_registration_options.cc +++ b/content/browser/background_sync/background_sync_registration_options.cc @@ -6,6 +6,10 @@ namespace content { +// TODO(thakis): Remove this once http://crbug.com/488634 is fixed. +BackgroundSyncRegistrationOptions::BackgroundSyncRegistrationOptions() = + default; + bool BackgroundSyncRegistrationOptions::Equals( const BackgroundSyncRegistrationOptions& other) const { return tag == other.tag && min_period == other.min_period && diff --git a/content/browser/background_sync/background_sync_registration_options.h b/content/browser/background_sync/background_sync_registration_options.h index 133c9f6..9dcb8d9 100644 --- a/content/browser/background_sync/background_sync_registration_options.h +++ b/content/browser/background_sync/background_sync_registration_options.h @@ -15,6 +15,7 @@ namespace content { // The options passed to BackgroundSyncManager::Registration. struct CONTENT_EXPORT BackgroundSyncRegistrationOptions { + BackgroundSyncRegistrationOptions(); bool Equals(const BackgroundSyncRegistrationOptions& other) const; std::string tag; |