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

Issue 23857004: file_manager: Unify the file task selection logic (Closed)

Created:
7 years, 3 months ago by satorux1
Modified:
7 years, 3 months ago
Reviewers:
kinaba
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

file_manager: Unify the file task selection logic Previously, open_util.cc and file_tasks.cc had two separate implementations of file task selection logic. The one in open_util.cc was unclean had an issue with the download shelf (issue 279771). Not to mention, having two separate implementations for doing the same thing is not good for code health. This patch replaces the unclean logic in open_util.cc with the one in file_tasks.cc (FindAllTypesOfTasks()). BUG=279771, 278037, 284194 TEST=See steps described in issue 279771 R=kinaba@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221336

Patch Set 1 : #

Total comments: 9

Patch Set 2 : rebase #

Patch Set 3 : partially address comments #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -216 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/file_browser_handlers.h View 1 chunk +1 line, -19 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/file_browser_handlers.cc View 2 chunks +1 line, -79 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/file_tasks.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/open_util.cc View 1 2 2 chunks +30 lines, -117 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
satorux1
this removes lots of code.
7 years, 3 months ago (2013-09-03 05:19:54 UTC) #1
kinaba
https://codereview.chromium.org/23857004/diff/7001/chrome/browser/chromeos/extensions/file_manager/open_util.cc File chrome/browser/chromeos/extensions/file_manager/open_util.cc (right): https://codereview.chromium.org/23857004/diff/7001/chrome/browser/chromeos/extensions/file_manager/open_util.cc#newcode138 chrome/browser/chromeos/extensions/file_manager/open_util.cc:138: // taskfor the file. Returns false if failed to ...
7 years, 3 months ago (2013-09-03 07:27:38 UTC) #2
satorux1
https://codereview.chromium.org/23857004/diff/7001/chrome/browser/chromeos/extensions/file_manager/open_util.cc File chrome/browser/chromeos/extensions/file_manager/open_util.cc (right): https://codereview.chromium.org/23857004/diff/7001/chrome/browser/chromeos/extensions/file_manager/open_util.cc#newcode138 chrome/browser/chromeos/extensions/file_manager/open_util.cc:138: // taskfor the file. Returns false if failed to ...
7 years, 3 months ago (2013-09-03 08:07:30 UTC) #3
satorux1
https://codereview.chromium.org/23857004/diff/7001/chrome/browser/chromeos/extensions/file_manager/open_util.cc File chrome/browser/chromeos/extensions/file_manager/open_util.cc (right): https://codereview.chromium.org/23857004/diff/7001/chrome/browser/chromeos/extensions/file_manager/open_util.cc#newcode157 chrome/browser/chromeos/extensions/file_manager/open_util.cc:157: file_tasks::FindAllTypesOfTasks(profile, On 2013/09/03 08:07:30, satorux1 wrote: > On 2013/09/03 ...
7 years, 3 months ago (2013-09-04 04:19:42 UTC) #4
kinaba
lgtm
7 years, 3 months ago (2013-09-04 05:08:32 UTC) #5
satorux1
7 years, 3 months ago (2013-09-05 03:31:30 UTC) #6
Message was sent while issue was closed.
Committed patchset #5 manually as r221336 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698