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

Issue 1407353012: Refactor FaviconDriver::OnFaviconAvailable() (Closed)

Created:
5 years, 1 month ago by pkotwicz
Modified:
5 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, davidben+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, tburkard+watch_chromium.org, jam, browser-components-watch_chromium.org, gavinp+prer_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, pkotwicz, Roger McFarlane (Chromium)
Base URL:
https://chromium.googlesource.com/chromium/src.git@initial_simplify
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor FaviconDriver::OnFaviconAvailable() This CL: - Removes weird OnFaviconAvailable() behavior if gfx::Image is empty. - Merges: FaviconDriver::SetActiveFaviconValidity() FaviconDriver::SetActiveFaviconURL() FaviconDriver::SetActiveFaviconImage() - Merges FaviconDriverObserver::OnFaviconAvailable() and FaviconDriverObserver::OnFaviconUpdated(). BUG=542057 Committed: https://crrev.com/7e8e893275dd310e13ae77de88ebec260d61994a Cr-Commit-Position: refs/heads/master@{#361132}

Patch Set 1 : #

Total comments: 14

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -454 lines) Patch
M chrome/browser/android/tab_android.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_event_router.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_event_router.cc View 1 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/favicon/content_favicon_driver_browsertest.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/task_management/providers/web_contents/renderer_task.h View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/task_management/providers/web_contents/renderer_task.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/task_management/providers/web_contents/tab_contents_tag_browsertest.cc View 1 3 chunks +16 lines, -5 lines 0 comments Download
M components/favicon/content/content_favicon_driver.h View 1 3 chunks +6 lines, -8 lines 0 comments Download
M components/favicon/content/content_favicon_driver.cc View 1 2 chunks +19 lines, -24 lines 0 comments Download
M components/favicon/core/favicon_driver.h View 1 4 chunks +15 lines, -30 lines 0 comments Download
M components/favicon/core/favicon_driver.cc View 2 chunks +7 lines, -9 lines 0 comments Download
M components/favicon/core/favicon_driver_impl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M components/favicon/core/favicon_driver_impl.cc View 2 chunks +4 lines, -30 lines 0 comments Download
M components/favicon/core/favicon_driver_observer.h View 1 2 chunks +39 lines, -7 lines 0 comments Download
M components/favicon/core/favicon_handler.h View 4 chunks +15 lines, -24 lines 0 comments Download
M components/favicon/core/favicon_handler.cc View 6 chunks +27 lines, -23 lines 0 comments Download
M components/favicon/core/favicon_handler_unittest.cc View 1 44 chunks +111 lines, -238 lines 0 comments Download
M components/favicon/ios/web_favicon_driver.h View 1 2 chunks +6 lines, -7 lines 0 comments Download
M components/favicon/ios/web_favicon_driver.cc View 1 1 chunk +16 lines, -18 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (6 generated)
pkotwicz
Scott, can you please take a look? I am not a big fan of introducing ...
5 years, 1 month ago (2015-11-10 01:46:33 UTC) #2
pkotwicz
Scott, Ping!
5 years, 1 month ago (2015-11-16 16:42:01 UTC) #6
sky
Sorry, been busy and this doesn't seem like a high priority. Will find time for ...
5 years, 1 month ago (2015-11-19 17:57:37 UTC) #7
sky
https://codereview.chromium.org/1407353012/diff/40001/components/favicon/content/content_favicon_driver.cc File components/favicon/content/content_favicon_driver.cc (right): https://codereview.chromium.org/1407353012/diff/40001/components/favicon/content/content_favicon_driver.cc#newcode148 components/favicon/content/content_favicon_driver.cc:148: // This should never occur. DCHECK https://codereview.chromium.org/1407353012/diff/40001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h ...
5 years, 1 month ago (2015-11-20 00:44:26 UTC) #8
pkotwicz
https://codereview.chromium.org/1407353012/diff/40001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (right): https://codereview.chromium.org/1407353012/diff/40001/components/favicon/core/favicon_driver.h#newcode41 components/favicon/core/favicon_driver.h:41: virtual GURL GetFaviconURL() const = 0; I think that ...
5 years, 1 month ago (2015-11-20 03:13:29 UTC) #9
sky
https://codereview.chromium.org/1407353012/diff/40001/components/favicon/core/favicon_driver.h File components/favicon/core/favicon_driver.h (right): https://codereview.chromium.org/1407353012/diff/40001/components/favicon/core/favicon_driver.h#newcode41 components/favicon/core/favicon_driver.h:41: virtual GURL GetFaviconURL() const = 0; On 2015/11/20 03:13:29, ...
5 years, 1 month ago (2015-11-20 16:03:59 UTC) #10
pkotwicz
https://codereview.chromium.org/1407353012/diff/40001/components/favicon/core/favicon_handler.h File components/favicon/core/favicon_handler.h (right): https://codereview.chromium.org/1407353012/diff/40001/components/favicon/core/favicon_handler.h#newcode84 components/favicon/core/favicon_handler.h:84: FaviconDriverObserver::NotificationIconType handler_type); I wanted to avoid confusion with favicon_base::IconType ...
5 years, 1 month ago (2015-11-20 16:06:11 UTC) #11
sky
https://codereview.chromium.org/1407353012/diff/40001/components/favicon/core/favicon_handler.h File components/favicon/core/favicon_handler.h (right): https://codereview.chromium.org/1407353012/diff/40001/components/favicon/core/favicon_handler.h#newcode84 components/favicon/core/favicon_handler.h:84: FaviconDriverObserver::NotificationIconType handler_type); On 2015/11/20 16:06:11, pkotwicz wrote: > I ...
5 years, 1 month ago (2015-11-20 16:34:41 UTC) #12
pkotwicz
Scott, can you please take another look? https://codereview.chromium.org/1407353012/diff/40001/components/favicon/content/content_favicon_driver.cc File components/favicon/content/content_favicon_driver.cc (right): https://codereview.chromium.org/1407353012/diff/40001/components/favicon/content/content_favicon_driver.cc#newcode148 components/favicon/content/content_favicon_driver.cc:148: // This ...
5 years, 1 month ago (2015-11-21 23:04:08 UTC) #14
sky
LGTM
5 years, 1 month ago (2015-11-22 15:48:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407353012/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407353012/80001
5 years, 1 month ago (2015-11-23 16:37:20 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:80001)
5 years, 1 month ago (2015-11-23 17:35:54 UTC) #18
commit-bot: I haz the power
5 years, 1 month ago (2015-11-23 17:36:49 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7e8e893275dd310e13ae77de88ebec260d61994a
Cr-Commit-Position: refs/heads/master@{#361132}

Powered by Google App Engine
This is Rietveld 408576698