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

Issue 15388002: Supporting high dpi favicons in Instant Extended. (Closed)

Created:
7 years, 7 months ago by pedro (no code reviews)
Modified:
7 years, 5 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, gideonwald, dominich, Aaron Boodman, jfweitz+watch_chromium.org, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org, Jered, samarth
Visibility:
Public.

Description

Preparation for supporting high dpi favicons in Instant Extended. The logic in FaviconSource::ParsePath() has been moved from chrome/browser/ui/* to chrome/common/favicon* allowing it to be used from the renderer. Also, chrome/browser/favicon/favicon_types.h to chrome/common/favicon/favicon_types.h for the same reason. Related internal CL: cl/46805180 To test this CL: 1) git cl patch 15388002 2) ./build/gyp_chromium 2) compile chrome 3) run chrome with --enable-instant-extended-api BUG=227087 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211085

Patch Set 1 #

Patch Set 2 : Uploading a new patch #

Patch Set 3 : Moving reusable pieces to chrome/common #

Total comments: 36

Patch Set 4 : Addressing Sreeram's comments #

Patch Set 5 : Refactoring after Kausalya's change #

Total comments: 28

Patch Set 6 : Addressing Samarth's comments #

Total comments: 20

Patch Set 7 : Addressing Samarth's comments #

Total comments: 4

Patch Set 8 : #

Total comments: 3

Patch Set 9 : Addressing comments #

Total comments: 4

Patch Set 10 : Addressing comments & removing searchbox changes #

Total comments: 2

Patch Set 11 : Addressing Sky's comments #

Total comments: 6

Patch Set 12 : Addressing James' comments #

Patch Set 13 : Moving tests to chrome/common/favicon/favicon_url_parser_unittest.cc #

Total comments: 2

Patch Set 14 : Sync and rebase #

Patch Set 15 : Addressing James' comments #

Patch Set 16 : Sync and rebase #

Patch Set 17 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -451 lines) Patch
M chrome/browser/bookmarks/bookmark_html_writer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_model.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/favicon/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/favicon/favicon_service.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/favicon/favicon_service.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -2 lines 0 comments Download
D chrome/browser/favicon/favicon_types.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -77 lines 0 comments Download
D chrome/browser/favicon/favicon_types.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/browser/favicon/favicon_util.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_types.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/jumplist_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/notifications/message_center_settings_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/history_menu_bridge.mm View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search_engines/template_url_table_model.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/back_forward_menu_model.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/favicon_source.h View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.cc View 1 2 3 4 5 6 7 8 5 chunks +15 lines, -129 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -191 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +1 line, -1 line 0 comments Download
A + chrome/common/favicon/favicon_types.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -3 lines 0 comments Download
A + chrome/common/favicon/favicon_types.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A chrome/common/favicon/favicon_url_parser.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/common/favicon/favicon_url_parser.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +140 lines, -0 lines 0 comments Download
A chrome/common/favicon/favicon_url_parser_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +166 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
pedro (no code reviews)
Hey Sreeram, this CL is almost ready, but I wanted to ask you for a ...
7 years, 7 months ago (2013-05-23 00:05:20 UTC) #1
sreeram
Generally looks good. Not sure about how to add a unittest. If it's hard to ...
7 years, 6 months ago (2013-06-04 22:01:56 UTC) #2
pedro (no code reviews)
FYI, I'll wait for @kmadhusu CL to land first. Then I'll rebase this CL again ...
7 years, 6 months ago (2013-06-07 23:34:21 UTC) #3
sreeram
Removing myself as reviewer, as I no longer work on Instant/Extended.
7 years, 6 months ago (2013-06-10 18:09:46 UTC) #4
pedro (no code reviews)
Hey Samarth, could you please take a look at this CL?
7 years, 6 months ago (2013-06-14 00:22:34 UTC) #5
samarth
Not really sure an interactive UI test is all that meaningful here. It's more important ...
7 years, 6 months ago (2013-06-14 21:54:46 UTC) #6
pedro (no code reviews)
Hey Samarth, Please take another look. I've refactored the code in order to make it ...
7 years, 6 months ago (2013-06-18 22:35:13 UTC) #7
samarth
A few more comments, but overall it's looking good. You probably should loop in favicon ...
7 years, 6 months ago (2013-06-20 00:31:29 UTC) #8
pedro (no code reviews)
https://codereview.chromium.org/15388002/diff/30001/chrome/browser/ui/webui/favicon_source.cc File chrome/browser/ui/webui/favicon_source.cc (right): https://codereview.chromium.org/15388002/diff/30001/chrome/browser/ui/webui/favicon_source.cc#newcode77 chrome/browser/ui/webui/favicon_source.cc:77: if (!success) { On 2013/06/20 00:31:29, samarth wrote: > ...
7 years, 6 months ago (2013-06-20 22:43:45 UTC) #9
pedro (no code reviews)
Hey Evan, could you please take a look at this CL?
7 years, 6 months ago (2013-06-20 22:44:48 UTC) #10
Evan Stade
On 2013/06/20 22:44:48, pedrosimonetti wrote: > Hey Evan, could you please take a look at ...
7 years, 6 months ago (2013-06-21 19:08:24 UTC) #11
pedro (no code reviews)
On 2013/06/21 19:08:24, Evan Stade wrote: > On 2013/06/20 22:44:48, pedrosimonetti wrote: > > Hey ...
7 years, 6 months ago (2013-06-21 20:22:50 UTC) #12
Evan Stade
no, I don't have OWNER control of chrome/common. Looks like you should look at chrome/OWNERS ...
7 years, 6 months ago (2013-06-24 18:56:23 UTC) #13
pedro (no code reviews)
Thanks Evan. https://codereview.chromium.org/15388002/diff/38001/chrome/common/favicon_url_parser.cc File chrome/common/favicon_url_parser.cc (right): https://codereview.chromium.org/15388002/diff/38001/chrome/common/favicon_url_parser.cc#newcode35 chrome/common/favicon_url_parser.cc:35: return (path.compare(start_index, search.size(), search) == 0); On ...
7 years, 5 months ago (2013-06-27 21:26:30 UTC) #14
pedro (no code reviews)
@James: could you review chrome/common/* changes? @Steven: could you review chrome/browser/favicon/favicon_types.h?
7 years, 5 months ago (2013-06-27 21:36:17 UTC) #15
James Hawkins
https://codereview.chromium.org/15388002/diff/48001/chrome/common/favicon_types.h File chrome/common/favicon_types.h (right): https://codereview.chromium.org/15388002/diff/48001/chrome/common/favicon_types.h#newcode10 chrome/common/favicon_types.h:10: // Defines the icon types. They are also stored ...
7 years, 5 months ago (2013-06-27 21:44:32 UTC) #16
stevenjb
It seems like we should add chrome/common/favicon/ for these. Even though it's only 3 files, ...
7 years, 5 months ago (2013-06-27 22:06:30 UTC) #17
pedro (no code reviews)
@Steven: That's a good idea. I'll move those files to chrome/common/favicon then. https://codereview.chromium.org/15388002/diff/48001/chrome/common/favicon_types.h File chrome/common/favicon_types.h ...
7 years, 5 months ago (2013-06-27 23:02:47 UTC) #18
James Hawkins
https://codereview.chromium.org/15388002/diff/48001/chrome/common/favicon_types.h File chrome/common/favicon_types.h (right): https://codereview.chromium.org/15388002/diff/48001/chrome/common/favicon_types.h#newcode10 chrome/common/favicon_types.h:10: // Defines the icon types. They are also stored ...
7 years, 5 months ago (2013-06-27 23:04:40 UTC) #19
pedro (no code reviews)
Okay, I've moved the common favicon code to chrome/common/favicon. Please take another look. Also. I ...
7 years, 5 months ago (2013-06-28 17:38:56 UTC) #20
stevenjb
I didn't look at the searchbox.cc changes (they really ought to be done in a ...
7 years, 5 months ago (2013-06-28 18:23:59 UTC) #21
pedro (no code reviews)
Okay, I've addressed the comments and removed searchbox related code (to be submitted in another ...
7 years, 5 months ago (2013-06-28 22:38:42 UTC) #22
pedro (no code reviews)
@sky: could you review changes in ui/gfx/*?
7 years, 5 months ago (2013-06-28 22:40:43 UTC) #23
sky
https://codereview.chromium.org/15388002/diff/62001/ui/gfx/favicon_size.h File ui/gfx/favicon_size.h (right): https://codereview.chromium.org/15388002/diff/62001/ui/gfx/favicon_size.h#newcode16 ui/gfx/favicon_size.h:16: UI_EXPORT extern const int kSizeInDip; AFAICT all of these ...
7 years, 5 months ago (2013-07-01 13:47:59 UTC) #24
pedro (no code reviews)
https://codereview.chromium.org/15388002/diff/62001/ui/gfx/favicon_size.h File ui/gfx/favicon_size.h (right): https://codereview.chromium.org/15388002/diff/62001/ui/gfx/favicon_size.h#newcode16 ui/gfx/favicon_size.h:16: UI_EXPORT extern const int kSizeInDip; On 2013/07/01 13:48:00, sky ...
7 years, 5 months ago (2013-07-01 22:33:29 UTC) #25
sky
That means you don't need me to review anymore, right?
7 years, 5 months ago (2013-07-02 00:25:15 UTC) #26
pedro (no code reviews)
On 2013/07/02 00:25:15, sky wrote: > That means you don't need me to review anymore, ...
7 years, 5 months ago (2013-07-02 16:43:38 UTC) #27
James Hawkins
On 2013/07/02 16:43:38, pedrosimonetti wrote: > On 2013/07/02 00:25:15, sky wrote: > > That means ...
7 years, 5 months ago (2013-07-02 17:37:14 UTC) #28
pedro (no code reviews)
On 2013/07/02 17:37:14, James Hawkins wrote: > On 2013/07/02 16:43:38, pedrosimonetti wrote: > > On ...
7 years, 5 months ago (2013-07-02 18:12:35 UTC) #29
Evan Stade
webui lgtm
7 years, 5 months ago (2013-07-02 23:10:21 UTC) #30
James Hawkins
Where is the unit test for favicon_url_parser.cc? https://codereview.chromium.org/15388002/diff/69001/chrome/common/favicon/favicon_url_parser.cc File chrome/common/favicon/favicon_url_parser.cc (right): https://codereview.chromium.org/15388002/diff/69001/chrome/common/favicon/favicon_url_parser.cc#newcode35 chrome/common/favicon/favicon_url_parser.cc:35: bool HasSubstringAt(const ...
7 years, 5 months ago (2013-07-02 23:23:04 UTC) #31
pedro (no code reviews)
On 2013/07/02 23:23:04, James Hawkins wrote: > Where is the unit test for favicon_url_parser.cc? > ...
7 years, 5 months ago (2013-07-03 00:13:35 UTC) #32
pedro (no code reviews)
https://codereview.chromium.org/15388002/diff/69001/chrome/common/favicon/favicon_url_parser.cc File chrome/common/favicon/favicon_url_parser.cc (right): https://codereview.chromium.org/15388002/diff/69001/chrome/common/favicon/favicon_url_parser.cc#newcode35 chrome/common/favicon/favicon_url_parser.cc:35: bool HasSubstringAt(const std::string& path, On 2013/07/02 23:23:04, James Hawkins ...
7 years, 5 months ago (2013-07-03 00:16:55 UTC) #33
James Hawkins
https://codereview.chromium.org/15388002/diff/69001/chrome/common/favicon/favicon_url_parser.cc File chrome/common/favicon/favicon_url_parser.cc (right): https://codereview.chromium.org/15388002/diff/69001/chrome/common/favicon/favicon_url_parser.cc#newcode35 chrome/common/favicon/favicon_url_parser.cc:35: bool HasSubstringAt(const std::string& path, On 2013/07/03 00:16:56, pedrosimonetti wrote: ...
7 years, 5 months ago (2013-07-03 16:44:44 UTC) #34
pedro (no code reviews)
On 2013/07/03 16:44:44, James Hawkins wrote: > https://codereview.chromium.org/15388002/diff/69001/chrome/common/favicon/favicon_url_parser.cc > File chrome/common/favicon/favicon_url_parser.cc (right): > > https://codereview.chromium.org/15388002/diff/69001/chrome/common/favicon/favicon_url_parser.cc#newcode35 ...
7 years, 5 months ago (2013-07-03 17:45:28 UTC) #35
James Hawkins
On 2013/07/03 00:13:35, pedrosimonetti wrote: > On 2013/07/02 23:23:04, James Hawkins wrote: > > Where ...
7 years, 5 months ago (2013-07-03 17:48:51 UTC) #36
pedro (no code reviews)
On 2013/07/03 17:48:51, James Hawkins wrote: > On 2013/07/03 00:13:35, pedrosimonetti wrote: > > On ...
7 years, 5 months ago (2013-07-03 18:32:39 UTC) #37
samarth
I agree with jhawkins: the tests for the thing you're testing should live with the ...
7 years, 5 months ago (2013-07-03 18:34:05 UTC) #38
pedro (no code reviews)
On 2013/07/03 18:34:05, samarth wrote: > I agree with jhawkins: the tests for the thing ...
7 years, 5 months ago (2013-07-03 21:26:11 UTC) #39
pedro (no code reviews)
https://codereview.chromium.org/15388002/diff/69001/chrome/common/favicon/favicon_url_parser.cc File chrome/common/favicon/favicon_url_parser.cc (right): https://codereview.chromium.org/15388002/diff/69001/chrome/common/favicon/favicon_url_parser.cc#newcode35 chrome/common/favicon/favicon_url_parser.cc:35: bool HasSubstringAt(const std::string& path, On 2013/07/03 16:44:45, James Hawkins ...
7 years, 5 months ago (2013-07-03 21:28:13 UTC) #40
James Hawkins
https://codereview.chromium.org/15388002/diff/91001/chrome/common/favicon/favicon_url_parser_unittest.cc File chrome/common/favicon/favicon_url_parser_unittest.cc (right): https://codereview.chromium.org/15388002/diff/91001/chrome/common/favicon/favicon_url_parser_unittest.cc#newcode41 chrome/common/favicon/favicon_url_parser_unittest.cc:41: // 1) Test parsing path with no extra parameters. ...
7 years, 5 months ago (2013-07-07 18:14:01 UTC) #41
pedro (no code reviews)
James, please take another look. https://codereview.chromium.org/15388002/diff/91001/chrome/common/favicon/favicon_url_parser_unittest.cc File chrome/common/favicon/favicon_url_parser_unittest.cc (right): https://codereview.chromium.org/15388002/diff/91001/chrome/common/favicon/favicon_url_parser_unittest.cc#newcode41 chrome/common/favicon/favicon_url_parser_unittest.cc:41: // 1) Test parsing ...
7 years, 5 months ago (2013-07-10 01:27:39 UTC) #42
James Hawkins
lgtm
7 years, 5 months ago (2013-07-10 22:50:57 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pedrosimonetti@chromium.org/15388002/103001
7 years, 5 months ago (2013-07-11 00:33:57 UTC) #44
commit-bot: I haz the power
7 years, 5 months ago (2013-07-11 11:54:46 UTC) #45
Message was sent while issue was closed.
Change committed as 211085

Powered by Google App Engine
This is Rietveld 408576698