[Nearby] Move feature flags to //c/b/nearby_sharing/common/

Move the Nearby Share feature flags out of //c/b/browser_features and
into the feature-specific location //c/b/nearby_sharing/common/. This
was recommended by fgorski@ in crrev/c/2510351.

Note: Nearby Share is currently only being built for Chrome OS. We
clean up locations that did not reflect this.

Fixed: 1144259
Change-Id: I5c5483e35a040f244df4b88c29e992106f869c55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2515045
Reviewed-by: Filip Gorski <[email protected]>
Reviewed-by: Alex Gough <[email protected]>
Commit-Queue: Josh Nohle <[email protected]>
Cr-Commit-Position: refs/heads/master@{#823640}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index e891e3ab..fe25dbe1 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -203,6 +203,7 @@
 
 #if defined(OS_CHROMEOS)
 #include "ash/public/cpp/ash_switches.h"
+#include "chrome/browser/nearby_sharing/common/nearby_share_features.h"
 #include "chromeos/constants/chromeos_features.h"
 #include "chromeos/constants/chromeos_switches.h"
 #include "chromeos/services/assistant/public/cpp/features.h"
@@ -6187,13 +6188,16 @@
     {"copy-link-to-text", flag_descriptions::kCopyLinkToTextName,
      flag_descriptions::kCopyLinkToTextDescription, kOsDesktop,
      FEATURE_VALUE_TYPE(features::kCopyLinkToText)},
+#endif  // !defined(OS_ANDROID)
+
+#if defined(OS_CHROMEOS)
     {"nearby-sharing", flag_descriptions::kNearbySharingName,
-     flag_descriptions::kNearbySharingDescription, kOsDesktop,
+     flag_descriptions::kNearbySharingDescription, kOsCrOS,
      FEATURE_VALUE_TYPE(features::kNearbySharing)},
     {"nearby-sharing-webrtc", flag_descriptions::kNearbySharingWebRtcName,
-     flag_descriptions::kNearbySharingWebRtcDescription, kOsDesktop,
+     flag_descriptions::kNearbySharingWebRtcDescription, kOsCrOS,
      FEATURE_VALUE_TYPE(features::kNearbySharingWebRtc)},
-#endif  // !defined(OS_ANDROID)
+#endif  // defined(OS_CHROMEOS)
 
 #if defined(OS_ANDROID)
     {"android-default-browser-promo",