Commit ede51783 authored by Jose Dapena Paz's avatar Jose Dapena Paz Committed by Commit Bot

GCC build fix: base::Optional<T> requires the full declaration of T

In GCC 7.2/7.3, base::Optional<T> fails to compile, if T has still
only been forward declared, as it cannot properly resolve the
is_trivially_* declarations. In this case it is needed to include the
full declaration of the type, and not only the forward declaration.

Change-Id: I63e5c6307394c6c2eda6af108c80395152bfc04f
Reviewed-on: https://chromium-review.googlesource.com/944401
Commit-Queue: José Dapena Paz <jose.dapena@lge.com>
Reviewed-by: default avatarBernhard Bauer <bauerb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540815}
parent c7f9a631
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include "services/preferences/public/mojom/preferences.mojom.h" #include "services/preferences/public/mojom/preferences.mojom.h"
#include "services/preferences/tracked/hash_store_contents.h" #include "services/preferences/tracked/hash_store_contents.h"
#include "services/preferences/tracked/interceptable_pref_filter.h" #include "services/preferences/tracked/interceptable_pref_filter.h"
#include "services/preferences/tracked/pref_hash_store.h"
#include "services/preferences/tracked/tracked_preference.h" #include "services/preferences/tracked/tracked_preference.h"
class PrefHashStore;
class PrefService; class PrefService;
namespace base { namespace base {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment