summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharuki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-01 06:20:38 +0000
committerharuki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-01 06:20:38 +0000
commit56d26ce92157228f2ca54d52d568360c2349e356 (patch)
tree3c81372c5c45c73fd2722b5013d8487435ead810
parentae61e533a6d2ceab73eb785ff9c129b39dfb0e2b (diff)
downloadchromium_src-56d26ce92157228f2ca54d52d568360c2349e356.zip
chromium_src-56d26ce92157228f2ca54d52d568360c2349e356.tar.gz
chromium_src-56d26ce92157228f2ca54d52d568360c2349e356.tar.bz2
filemanager: Fix a wrong condition for the breadcrumb.
We would like to skip the first item (in this case '/drive/root') so "continue" should be applied only for "i == 0". BUG=232992 TEST=Currently invisible change. R=hirono@chromium.org, yoshiki@chromium.org Review URL: https://codereview.chromium.org/14612008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197575 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/resources/file_manager/js/breadcrumbs_controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/resources/file_manager/js/breadcrumbs_controller.js b/chrome/browser/resources/file_manager/js/breadcrumbs_controller.js
index 5ec8644..b41a16e 100644
--- a/chrome/browser/resources/file_manager/js/breadcrumbs_controller.js
+++ b/chrome/browser/resources/file_manager/js/breadcrumbs_controller.js
@@ -73,7 +73,7 @@ BreadcrumbsController.prototype.update = function(rootPath, path) {
// the Drive entries not in "My Drive". It is hidden as this path is not
// meaningful for the user.
// TODO(haruki): Show "Shared with me" as a crumb for shared-with-me entry.
- if (i > 0 &&
+ if (i == 0 &&
path === RootDirectory.DRIVE + '/' + DriveSubRootDirectory.OTHER)
continue;