Commit 22ce2735 authored by haruki@chromium.org's avatar haruki@chromium.org

Update options UI to display "/special/drive/root" as "Google Drive".

We are introducing a new namespace "root". The "My Drive" root will be represented as
"/special/drive/root".

BUG=174233,218221
TEST=Open options UI


Review URL: https://chromiumcodereview.appspot.com/12790013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192572 0039d316-1c4b-4281-b951-d872f2087c98
parent 5a8790aa
...@@ -869,7 +869,7 @@ cr.define('options', function() { ...@@ -869,7 +869,7 @@ cr.define('options', function() {
// /home/chronos/user/Downloads with Downloads for local files. // /home/chronos/user/Downloads with Downloads for local files.
// Also replace '/' with ' \u203a ' (angled quote sign) everywhere. // Also replace '/' with ' \u203a ' (angled quote sign) everywhere.
var path = $('downloadLocationPath').value; var path = $('downloadLocationPath').value;
path = path.replace(/^\/special\/drive/, 'Google Drive'); path = path.replace(/^\/special\/drive\/root/, 'Google Drive');
path = path.replace(/^\/home\/chronos\/user\//, ''); path = path.replace(/^\/home\/chronos\/user\//, '');
path = path.replace(/\//g, ' \u203a '); path = path.replace(/\//g, ' \u203a ');
$('downloadLocationPath').value = path; $('downloadLocationPath').value = path;
......
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