FIX: Add Chromebook detection.

FIX: Add Chromebook detection.

diff --git a/app/serializers/concerns/user_auth_tokens_mixin.rb b/app/serializers/concerns/user_auth_tokens_mixin.rb
index a5d88a0..5b9ae19 100644
--- a/app/serializers/concerns/user_auth_tokens_mixin.rb
+++ b/app/serializers/concerns/user_auth_tokens_mixin.rb
@@ -45,6 +45,8 @@ module UserAuthTokensMixin
     case BrowserDetection.os(object.user_agent)
     when :android
       'fab-android'
+    when :chromeos
+      'fab-chrome'
     when :macos, :ios
       'fab-apple'
     when :linux
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index e9eb27f..67cd3f7 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -745,28 +745,30 @@ en:
   user_auth_tokens:
     browser:
       chrome: "Google Chrome"
-      safari: "Safari"
+      discoursehub: "DiscourseHub app"
+      edge: "Microsoft Edge"
       firefox: "Firefox"
-      opera: "Opera"
       ie: "Internet Explorer"
-      edge: "Microsoft Edge"
-      discoursehub: "DiscourseHub app"
+      opera: "Opera"
+      safari: "Safari"
       unknown: "unknown browser"
     device:
       android: "Android Device"
+      chromebook: "Chromebook"
       ipad: "iPad"
       iphone: "iPhone"
       ipod: "iPod"
-      mobile: "Mobile Device"
-      mac: "Mac"
       linux: "GNU/Linux Computer"
+      mac: "Mac"
+      mobile: "Mobile Device"
       windows: "Windows Computer"
       unknown: "unknown device"
     os:
       android: "Android"
+      chromeos: "ChromeOS"
       ios: "iOS"
-      macos: "macOS"
       linux: "Linux"
+      macos: "macOS"
       windows: "Microsoft Windows"
       unknown: "unknown operating system"
 
diff --git a/lib/browser_detection.rb b/lib/browser_detection.rb
index 56a9fbc..6d7f6bc 100644
--- a/lib/browser_detection.rb
+++ b/lib/browser_detection.rb
@@ -27,6 +27,8 @@ module BrowserDetection
     case user_agent
     when /Android/i
       :android
+    when /CrOS/i
+      :chromebook
     when /iPad/i
       :ipad
     when /iPhone/i
@@ -50,6 +52,8 @@ module BrowserDetection
     case user_agent
     when /Android/i
       :android
+    when /CrOS/i
+      :chromeos
     when /iPhone|iPad|iPod/i
       :ios
     when /Macintosh/i
diff --git a/lib/svg_sprite/svg_sprite.rb b/lib/svg_sprite/svg_sprite.rb
index c5e9074..1d8cd7c 100644
--- a/lib/svg_sprite/svg_sprite.rb
+++ b/lib/svg_sprite/svg_sprite.rb
@@ -68,6 +68,7 @@ module SvgSprite
     "external-link-alt",
     "fab-android",
     "fab-apple",
+    "fab-chrome",
     "fab-discourse",
     "fab-facebook-square",
     "fab-facebook",

GitHub sha: 8196af16

This commit has been mentioned on Discourse Meta. There might be relevant details there: