Revert "Write string_view to fd"

This reverts commit 0598b07fc6be9eaaa03179c66e09d2fa01b0a4d8.

Reason for revert: DroidMonitor: Potential culprit for b/260066911 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: I79a109e289466a31f45e64cc7fae0a229dfea9e7
diff --git a/file.cpp b/file.cpp
index f4f3ad4..71683fd 100644
--- a/file.cpp
+++ b/file.cpp
@@ -245,7 +245,7 @@
   return ReadFdToString(fd, content);
 }
 
-bool WriteStringToFd(std::string_view content, borrowed_fd fd) {
+bool WriteStringToFd(const std::string& content, borrowed_fd fd) {
   const char* p = content.data();
   size_t left = content.size();
   while (left > 0) {