Reorder a function in the .cc file. Tweak includes.

Change-Id: Ieab34e683e77b4e9e876d9d9821bd612b73aefa2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7216369
Auto-Submit: Caitlin Fischer <caitlinfischer@google.com>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1553029}
NOKEYCHECK=True
GitOrigin-RevId: ccb39a16978bd71b7df6943b8084c1c6f6316973
diff --git a/field_trials_provider.cc b/field_trials_provider.cc
index 0c228c8..ba5439c 100644
--- a/field_trials_provider.cc
+++ b/field_trials_provider.cc
@@ -8,12 +8,12 @@
 #include <string_view>
 #include <vector>
 
+#include "base/time/time.h"
 #include "components/variations/active_field_trials.h"
 #include "components/variations/synthetic_trial_registry.h"
 #include "third_party/metrics_proto/system_profile.pb.h"
 
 namespace variations {
-
 namespace {
 
 void WriteFieldTrials(const std::vector<ActiveGroupId>& field_trial_ids,
@@ -33,13 +33,6 @@
     : registry_(registry), suffix_(suffix) {}
 FieldTrialsProvider::~FieldTrialsProvider() = default;
 
-void FieldTrialsProvider::GetFieldTrialIds(
-    std::vector<ActiveGroupId>* field_trial_ids) const {
-  // As the trial groups are included in metrics reports, we must not include
-  // the low anonymity trials.
-  variations::GetFieldTrialActiveGroupIds(suffix_, field_trial_ids);
-}
-
 void FieldTrialsProvider::ProvideSystemProfileMetrics(
     metrics::SystemProfileProto* system_profile_proto) {
   // ProvideSystemProfileMetricsWithLogCreationTime() should be called instead.
@@ -79,6 +72,13 @@
   log_creation_time_ = time;
 }
 
+void FieldTrialsProvider::GetFieldTrialIds(
+    std::vector<ActiveGroupId>* field_trial_ids) const {
+  // As the trial groups are included in metrics reports, we must not include
+  // the low anonymity trials.
+  variations::GetFieldTrialActiveGroupIds(suffix_, field_trial_ids);
+}
+
 void FieldTrialsProvider::GetAndWriteFieldTrials(
     metrics::SystemProfileProto* system_profile_proto) const {
   system_profile_proto->clear_field_trial();
diff --git a/field_trials_provider.h b/field_trials_provider.h
index 5e06385..910a644 100644
--- a/field_trials_provider.h
+++ b/field_trials_provider.h
@@ -5,7 +5,9 @@
 #ifndef COMPONENTS_METRICS_FIELD_TRIALS_PROVIDER_H_
 #define COMPONENTS_METRICS_FIELD_TRIALS_PROVIDER_H_
 
+#include <string>
 #include <string_view>
+#include <vector>
 
 #include "base/memory/raw_ptr.h"
 #include "base/time/time.h"