Commit f62b0892 authored by Joel Hockey's avatar Joel Hockey Committed by Commit Bot

Add location information to Plugin VM shared path instructions

Fix text to include location information as per UX spec.  See bug.

Bug: b/161645291
Change-Id: If6524cf9608f75579af33923cc6e2a171c428086
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2306114
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
Auto-Submit: Joel Hockey <joelhockey@chromium.org>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Reviewed-by: default avatarTimothy Loh <timloh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790242}
parent 01f09745
...@@ -988,6 +988,9 @@ ...@@ -988,6 +988,9 @@
<message name="IDS_SETTINGS_CROSTINI_SHARED_PATHS_LIST_HEADING" desc="Label for list of shared folders."> <message name="IDS_SETTINGS_CROSTINI_SHARED_PATHS_LIST_HEADING" desc="Label for list of shared folders.">
Shared folders Shared folders
</message> </message>
<message name="IDS_SETTINGS_CROSTINI_SHARED_PATHS_INSTRUCTIONS_LOCATE" desc="Instructions for how to locate shared folders in Crostini.">
Shared folders are available in Linux at <ph name="BASE_DIR">$1<ex>/mnt/chromeos</ex></ph>.
</message>
<message name="IDS_SETTINGS_CROSTINI_SHARED_PATHS_INSTRUCTIONS_ADD" desc="Instructions for how to add shared folders in Crostini."> <message name="IDS_SETTINGS_CROSTINI_SHARED_PATHS_INSTRUCTIONS_ADD" desc="Instructions for how to add shared folders in Crostini.">
To share, right-click on a folder in Files app, then select "Share with Linux". To share, right-click on a folder in Files app, then select "Share with Linux".
</message> </message>
...@@ -1207,9 +1210,6 @@ ...@@ -1207,9 +1210,6 @@
<message name="IDS_SETTINGS_CROSTINI_ARC_ADB_CONFIRMATION_MESSAGE_DISABLE" desc="Describes what will happen if the user disables ADB Sideloading."> <message name="IDS_SETTINGS_CROSTINI_ARC_ADB_CONFIRMATION_MESSAGE_DISABLE" desc="Describes what will happen if the user disables ADB Sideloading.">
Disabling ADB debugging will reset this <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph> to factory settings. All user accounts and local data will be erased. Disabling ADB debugging will reset this <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph> to factory settings. All user accounts and local data will be erased.
</message> </message>
<message name="IDS_SETTINGS_CROSTINI_SHARED_PATHS_INSTRUCTIONS_LOCATE" desc="Instructions for how to locate shared folders in Crostini.">
Shared folders are available in Linux at <ph name="BASE_DIR">$1<ex>/mnt/chromeos</ex></ph>.
</message>
<message name="IDS_SETTINGS_CROSTINI_SUBTEXT" desc="Description for the section for enabling and managing Crostini."> <message name="IDS_SETTINGS_CROSTINI_SUBTEXT" desc="Description for the section for enabling and managing Crostini.">
Run Linux tools, editors, and IDEs on your <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph>. &lt;a target="_blank" href="<ph name="URL">$2<ex>https://google.com/</ex></ph>"&gt;Learn more&lt;/a&gt; Run Linux tools, editors, and IDEs on your <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph>. &lt;a target="_blank" href="<ph name="URL">$2<ex>https://google.com/</ex></ph>"&gt;Learn more&lt;/a&gt;
</message> </message>
...@@ -2828,6 +2828,9 @@ ...@@ -2828,6 +2828,9 @@
<message name="IDS_SETTINGS_APPS_PLUGIN_VM_SHARED_PATHS_LIST_HEADING" desc="Label for list of shared folders."> <message name="IDS_SETTINGS_APPS_PLUGIN_VM_SHARED_PATHS_LIST_HEADING" desc="Label for list of shared folders.">
Shared folders Shared folders
</message> </message>
<message name="IDS_SETTINGS_APPS_PLUGIN_VM_SHARED_PATHS_INSTRUCTIONS_LOCATE" desc="Instructions for how to locate shared folders in Parallels.">
Shared folders are available in Windows at <ph name="BASE_DIR">$1<ex>Network › ChromeOS</ex></ph>.
</message>
<message name="IDS_SETTINGS_APPS_PLUGIN_VM_SHARED_PATHS_INSTRUCTIONS_ADD" desc="Instructions for how to add shared folders in Parallels."> <message name="IDS_SETTINGS_APPS_PLUGIN_VM_SHARED_PATHS_INSTRUCTIONS_ADD" desc="Instructions for how to add shared folders in Parallels.">
To share, right-click on a folder in Files app, then select "Share with Parallels Desktop". To share, right-click on a folder in Files app, then select "Share with Parallels Desktop".
</message> </message>
......
...@@ -36,6 +36,7 @@ namespace plugin_vm { ...@@ -36,6 +36,7 @@ namespace plugin_vm {
const char kPluginVmShelfAppId[] = "lgjpclljbbmphhnalkeplcmnjpfmmaek"; const char kPluginVmShelfAppId[] = "lgjpclljbbmphhnalkeplcmnjpfmmaek";
const char kPluginVmName[] = "PvmDefault"; const char kPluginVmName[] = "PvmDefault";
const char kChromeOSBaseDirectoryDisplayText[] = "Network \u203a ChromeOS";
namespace { namespace {
......
...@@ -33,6 +33,9 @@ extern const char kPluginVmShelfAppId[]; ...@@ -33,6 +33,9 @@ extern const char kPluginVmShelfAppId[];
// Name of the Plugin VM. // Name of the Plugin VM.
extern const char kPluginVmName[]; extern const char kPluginVmName[];
// Base directory for shared paths in Plugin VM, formatted for display.
extern const char kChromeOSBaseDirectoryDisplayText[];
const net::NetworkTrafficAnnotationTag kPluginVmNetworkTrafficAnnotation = const net::NetworkTrafficAnnotationTag kPluginVmNetworkTrafficAnnotation =
net::DefineNetworkTrafficAnnotation("plugin_vm_image_download", R"( net::DefineNetworkTrafficAnnotation("plugin_vm_image_download", R"(
semantics { semantics {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<template> <template>
<style include="settings-shared"></style> <style include="settings-shared"></style>
<div class="settings-box first"> <div class="settings-box first">
<div> <div role="text">
$i18n{crostiniSharedPathsInstructionsLocate} $i18n{crostiniSharedPathsInstructionsLocate}
$i18n{crostiniSharedPathsInstructionsAdd} $i18n{crostiniSharedPathsInstructionsAdd}
<span id="crostiniInstructionsRemove" <span id="crostiniInstructionsRemove"
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
<template> <template>
<style include="settings-shared"></style> <style include="settings-shared"></style>
<div class="settings-box first"> <div class="settings-box first">
<div> <div role="text">
$i18n{pluginVmSharedPathsInstructionsLocate}
$i18n{pluginVmSharedPathsInstructionsAdd} $i18n{pluginVmSharedPathsInstructionsAdd}
<span id="pluginVmInstructionsRemove" <span id="pluginVmInstructionsRemove"
hidden="[[!sharedPaths_.length]]"> hidden="[[!sharedPaths_.length]]">
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "base/feature_list.h" #include "base/feature_list.h"
#include "base/no_destructor.h" #include "base/no_destructor.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/chromeos/arc/arc_util.h" #include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/chromeos/plugin_vm/plugin_vm_pref_names.h" #include "chrome/browser/chromeos/plugin_vm/plugin_vm_pref_names.h"
#include "chrome/browser/chromeos/plugin_vm/plugin_vm_util.h" #include "chrome/browser/chromeos/plugin_vm/plugin_vm_util.h"
...@@ -325,6 +326,11 @@ void AppsSection::AddPluginVmLoadTimeData( ...@@ -325,6 +326,11 @@ void AppsSection::AddPluginVmLoadTimeData(
html_source->AddBoolean("showPluginVm", html_source->AddBoolean("showPluginVm",
ShowPluginVm(profile(), *pref_service_)); ShowPluginVm(profile(), *pref_service_));
html_source->AddString(
"pluginVmSharedPathsInstructionsLocate",
l10n_util::GetStringFUTF16(
IDS_SETTINGS_APPS_PLUGIN_VM_SHARED_PATHS_INSTRUCTIONS_LOCATE,
base::UTF8ToUTF16(plugin_vm::kChromeOSBaseDirectoryDisplayText)));
html_source->AddBoolean( html_source->AddBoolean(
"showPluginVmCameraPermissions", "showPluginVmCameraPermissions",
base::FeatureList::IsEnabled( base::FeatureList::IsEnabled(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment