Remove RefCountedString::TakeString from chrome/*, chromos/*, content/*

Bug: 1374216
Change-Id: I96ae14e445c8c665f1bc5ea25bf37230d5cd3458
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3962237
Auto-Submit: jongmok kim <[email protected]>
Reviewed-by: Alex Moshchuk <[email protected]>
Commit-Queue: Alex Ilin <[email protected]>
Reviewed-by: Alex Ilin <[email protected]>
Reviewed-by: Steven Bennetts <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1060915}
diff --git a/content/browser/renderer_host/navigation_controller_android.cc b/content/browser/renderer_host/navigation_controller_android.cc
index bef70fea..f572a8f 100644
--- a/content/browser/renderer_host/navigation_controller_android.cc
+++ b/content/browser/renderer_host/navigation_controller_android.cc
@@ -308,7 +308,8 @@
     }
 #endif
     std::string s = data_url.spec();
-    params.data_url_as_string = base::RefCountedString::TakeString(&s);
+    params.data_url_as_string =
+        base::MakeRefCounted<base::RefCountedString>(std::move(s));
   }
 
   if (j_referrer_url) {