Index: chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc |
diff --git a/chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc b/chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc |
index 58982a27cbe6927f6d504528674a25f0f18006a7..841ace27f8a966cfcde142de42b01243b7a79976 100644 |
--- a/chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc |
+++ b/chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc |
@@ -34,12 +34,10 @@ class NativeMessagingHostManifestTest : public ::testing::Test { |
bool WriteManifest(const std::string& name, |
const std::string& path, |
const std::string& origin) { |
- std::string escaped_path; |
- base::JsonDoubleQuote(path, false, &escaped_path); |
return WriteManifest("{" |
" \"name\": \"" + name + "\"," |
" \"description\": \"Native Messaging Test\"," |
- " \"path\": \"" + escaped_path + "\"," |
+ " \"path\": " + base::GetQuotedJSONString(path) + "," |
" \"type\": \"stdio\"," |
" \"allowed_origins\": [" |
" \"" + origin + "\"" |