Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Issue 666693004: Stop fallback for empty local path in ui::SelectedFileInfo's constructor. (Closed)

Created:
6 years, 2 months ago by hirono
Modified:
6 years, 2 months ago
Reviewers:
mtomasz, sky
CC:
chromium-reviews, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Stop fallback for empty local path in ui::SelectedFileInfo's constructor. Previously ui::SelectedFileInfo's constructor has a fallback to use the file path instead of an emtpy local path. But this fallback can assign non-native paths like '/special/drive/xxx' to local_path variable when the file does not have a snapshot. The CL removes the fallback, and modify the default behavior of FileSelectDialog::Lister so that it routes an empty local_path to file_path. BUG=126902 TEST=manually Committed: https://crrev.com/5092f4c7e56734679ae69b00ea910898208091a7 Cr-Commit-Position: refs/heads/master@{#300628}

Patch Set 1 #

Patch Set 2 : Remove fallback from the SelectedFileInfo's constructor #

Patch Set 3 : #

Patch Set 4 : git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/private_api_util.cc View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M ui/shell_dialogs/select_file_dialog.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M ui/shell_dialogs/selected_file_info.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M ui/shell_dialogs/selected_file_info.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
hirono
PTAL the CL? Thank you!
6 years, 2 months ago (2014-10-20 05:03:07 UTC) #2
mtomasz
On 2014/10/20 05:03:07, hirono wrote: > PTAL the CL? Thank you! typo: assums -> assumes ...
6 years, 2 months ago (2014-10-20 05:06:14 UTC) #3
hirono
I changed the strategy. Please take another look? Thank you!
6 years, 2 months ago (2014-10-21 02:43:49 UTC) #4
mtomasz
Nice, lgtm!
6 years, 2 months ago (2014-10-21 02:45:19 UTC) #5
hirono
@sky - PTAL? Thank you!
6 years, 2 months ago (2014-10-21 02:46:17 UTC) #7
sky
Did you investigate why the logic was added that you're removed?
6 years, 2 months ago (2014-10-21 03:19:04 UTC) #8
hirono
@sky - The fallback was introduced at the same time when the |local_path| introduced to ...
6 years, 2 months ago (2014-10-21 05:07:08 UTC) #9
sky
LGTM
6 years, 2 months ago (2014-10-21 18:01:01 UTC) #10
hirono
On 2014/10/21 18:01:01, sky wrote: > LGTM Thanks!
6 years, 2 months ago (2014-10-22 02:47:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/666693004/60001
6 years, 2 months ago (2014-10-22 02:48:31 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 2 months ago (2014-10-22 04:15:23 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 04:16:25 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5092f4c7e56734679ae69b00ea910898208091a7
Cr-Commit-Position: refs/heads/master@{#300628}

Powered by Google App Engine
This is Rietveld 408576698