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

Issue 9692049: Gave native File Browser file handlers higher priority than 3rd party handlers. (Closed)

Created:
8 years, 9 months ago by Vladislav Kaznacheev
Modified:
8 years, 9 months ago
Reviewers:
dgozman, SeRya
CC:
chromium-reviews, nkostylev+watch_chromium.org, mihaip+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Gave native File Browser file handlers higher priority than 3rd party handlers. In the File Browser if there are several actions available for a file then the most recently used one becomes the default (it is invoked on double click etc). On a fresh profile when all timestamps are equal this is a matter of chance. The patch gives higher priority to the actions of the File Browser (only as long as timestamps are equal). BUG=chromium-os:27216 TEST=Start on a fresh profile, observe that "View" is shown for an image file, not "Upload to Picasa" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126711

Patch Set 1 #

Total comments: 5

Patch Set 2 : Radically simplified implementation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M chrome/browser/chromeos/extensions/file_handler_util.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Vladislav Kaznacheev
Please review
8 years, 9 months ago (2012-03-13 16:28:27 UTC) #1
Vladislav Kaznacheev
Adding Sergey.
8 years, 9 months ago (2012-03-14 11:12:02 UTC) #2
SeRya
https://chromiumcodereview.appspot.com/9692049/diff/1/chrome/browser/chromeos/extensions/file_handler_util.h File chrome/browser/chromeos/extensions/file_handler_util.h (right): https://chromiumcodereview.appspot.com/9692049/diff/1/chrome/browser/chromeos/extensions/file_handler_util.h#newcode45 chrome/browser/chromeos/extensions/file_handler_util.h:45: const std::string& privileged_extension_id, Could this parameter different from kFileBrowserDomain? ...
8 years, 9 months ago (2012-03-14 11:44:57 UTC) #3
Vladislav Kaznacheev
https://chromiumcodereview.appspot.com/9692049/diff/1/chrome/browser/chromeos/extensions/file_handler_util.h File chrome/browser/chromeos/extensions/file_handler_util.h (right): https://chromiumcodereview.appspot.com/9692049/diff/1/chrome/browser/chromeos/extensions/file_handler_util.h#newcode45 chrome/browser/chromeos/extensions/file_handler_util.h:45: const std::string& privileged_extension_id, It is not about flexibility but ...
8 years, 9 months ago (2012-03-14 12:01:05 UTC) #4
SeRya
https://chromiumcodereview.appspot.com/9692049/diff/1/chrome/browser/chromeos/extensions/file_handler_util.h File chrome/browser/chromeos/extensions/file_handler_util.h (right): https://chromiumcodereview.appspot.com/9692049/diff/1/chrome/browser/chromeos/extensions/file_handler_util.h#newcode45 chrome/browser/chromeos/extensions/file_handler_util.h:45: const std::string& privileged_extension_id, Could we resolve the dependency issue ...
8 years, 9 months ago (2012-03-14 12:19:22 UTC) #5
Vladislav Kaznacheev
https://chromiumcodereview.appspot.com/9692049/diff/1/chrome/browser/chromeos/extensions/file_handler_util.h File chrome/browser/chromeos/extensions/file_handler_util.h (right): https://chromiumcodereview.appspot.com/9692049/diff/1/chrome/browser/chromeos/extensions/file_handler_util.h#newcode45 chrome/browser/chromeos/extensions/file_handler_util.h:45: const std::string& privileged_extension_id, Checking for component extensions is not ...
8 years, 9 months ago (2012-03-14 12:28:07 UTC) #6
dgozman
https://chromiumcodereview.appspot.com/9692049/diff/1/chrome/browser/chromeos/extensions/file_handler_util.h File chrome/browser/chromeos/extensions/file_handler_util.h (right): https://chromiumcodereview.appspot.com/9692049/diff/1/chrome/browser/chromeos/extensions/file_handler_util.h#newcode45 chrome/browser/chromeos/extensions/file_handler_util.h:45: const std::string& privileged_extension_id, AFAIK, Picasa Uploader is not a ...
8 years, 9 months ago (2012-03-14 13:31:11 UTC) #7
Vladislav Kaznacheev
After discussing this with Sergey I am convinced that a shorter patch is better even ...
8 years, 9 months ago (2012-03-14 13:35:18 UTC) #8
SeRya
lgtm
8 years, 9 months ago (2012-03-14 18:05:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaznacheev@chromium.org/9692049/8001
8 years, 9 months ago (2012-03-14 18:13:48 UTC) #10
commit-bot: I haz the power
8 years, 9 months ago (2012-03-14 20:02:56 UTC) #11
Change committed as 126711

Powered by Google App Engine
This is Rietveld 408576698