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

Issue 22607006: Adding filter callback to BatchShortcutAction(). (Closed)

Created:
7 years, 4 months ago by huangs
Modified:
7 years, 4 months ago
Reviewers:
gab
CC:
chromium-reviews, grt+watch_chromium.org
Visibility:
Public.

Description

Adding filter callback to BatchShortcutAction(). We wish to enable allow better selectivity in ShellUtil::RemoveShortcuts() and ShellUtil::UpdateShortcuts() to decide on which shortcuts to operate on. In this CL: - BatchShortcutAction() is given a (newly defined) FileFilterCallback predicate that decides whether or not a given shortcut should be operated on. - Currently this is only created by (newly defined) class FilterTargetEq. - Also renamed FileOperationCallback to ShortcutOperationCallback. - This is a refactoring CL, so we retain the old behavior: BatchShortcutAction() only considers shortcuts that have with a specific target. BUG=235857 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217092

Patch Set 1 #

Total comments: 12

Patch Set 2 : Renaming and comment fixes. #

Total comments: 2

Patch Set 3 : Format fix. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -17 lines) Patch
M chrome/installer/util/shell_util.cc View 1 2 3 5 chunks +66 lines, -17 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
huangs
PTAL. This is just a refactoring CL.
7 years, 4 months ago (2013-08-08 19:32:44 UTC) #1
gab
Comments below, please also update the CL description to match the new patch set. Cheers, ...
7 years, 4 months ago (2013-08-09 13:40:47 UTC) #2
huangs
PTAL. https://chromiumcodereview.appspot.com/22607006/diff/1/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://chromiumcodereview.appspot.com/22607006/diff/1/chrome/installer/util/shell_util.cc#newcode1192 chrome/installer/util/shell_util.cc:1192: FileFilterCallback; Done. Also added variable names in side ...
7 years, 4 months ago (2013-08-09 15:06:20 UTC) #3
gab
lgtm w/ nit Thanks! Gab https://codereview.chromium.org/22607006/diff/6001/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://codereview.chromium.org/22607006/diff/6001/chrome/installer/util/shell_util.cc#newcode2037 chrome/installer/util/shell_util.cc:2037: .AsShortcutFilterCallback(), nit: convention is ...
7 years, 4 months ago (2013-08-09 15:10:17 UTC) #4
huangs
Thanks! Going through CQ. https://chromiumcodereview.appspot.com/22607006/diff/6001/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://chromiumcodereview.appspot.com/22607006/diff/6001/chrome/installer/util/shell_util.cc#newcode2037 chrome/installer/util/shell_util.cc:2037: .AsShortcutFilterCallback(), Fixed ".", but not ...
7 years, 4 months ago (2013-08-09 15:27:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/22607006/11001
7 years, 4 months ago (2013-08-09 15:28:26 UTC) #6
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=185810
7 years, 4 months ago (2013-08-09 22:51:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/22607006/11001
7 years, 4 months ago (2013-08-10 02:02:22 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=186150
7 years, 4 months ago (2013-08-10 06:27:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/22607006/42001
7 years, 4 months ago (2013-08-12 13:32:40 UTC) #10
commit-bot: I haz the power
7 years, 4 months ago (2013-08-12 22:02:32 UTC) #11
Message was sent while issue was closed.
Change committed as 217092

Powered by Google App Engine
This is Rietveld 408576698