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

Issue 10205014: Use synced favicons in the Other Devices menu when possible. (Closed)

Created:
8 years, 8 months ago by Patrick Dubroy
Modified:
8 years, 7 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

Use synced favicons in the Other Devices menu when possible. BUG=124441 TEST=Open two signed-in sessions, and visit a page in one browser that has never been visited in the other browser (verify that the favicon is not cached in browser #2 by checking chrome://favicon). When the open tab is synced to browser #2, it should also get the favicon. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134547

Patch Set 1 #

Total comments: 8

Patch Set 2 : Add SessionFaviconSource. #

Patch Set 3 : Clean up. #

Patch Set 4 : Remove logging statement. #

Total comments: 2

Patch Set 5 : Remove unnecessary function. #

Patch Set 6 : ChromeURLDataManager::AddDataSource(profile, #

Patch Set 7 : Fix copyright header. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -13 lines) Patch
M chrome/browser/resources/ntp4/other_sessions.js View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/favicon_source.h View 1 2 3 4 5 6 5 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.cc View 1 1 chunk +16 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/ntp/foreign_session_handler.cc View 1 2 3 4 5 3 chunks +8 lines, -2 lines 0 comments Download
A chrome/browser/ui/webui/session_favicon_source.h View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/session_favicon_source.cc View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Patrick Dubroy
Hey Evan, please take a look. (cc: zea)
8 years, 8 months ago (2012-04-24 14:01:23 UTC) #1
Evan Stade
http://codereview.chromium.org/10205014/diff/1/chrome/browser/ui/webui/ntp/foreign_session_handler.cc File chrome/browser/ui/webui/ntp/foreign_session_handler.cc (right): http://codereview.chromium.org/10205014/diff/1/chrome/browser/ui/webui/ntp/foreign_session_handler.cc#newcode268 chrome/browser/ui/webui/ntp/foreign_session_handler.cc:268: if (base::Base64Encode(favicon_data, &encoded_favicon_data)) cook this into the favicon data ...
8 years, 8 months ago (2012-04-24 18:08:12 UTC) #2
Evan Stade
http://codereview.chromium.org/10205014/diff/1/chrome/browser/ui/webui/ntp/foreign_session_handler.cc File chrome/browser/ui/webui/ntp/foreign_session_handler.cc (right): http://codereview.chromium.org/10205014/diff/1/chrome/browser/ui/webui/ntp/foreign_session_handler.cc#newcode268 chrome/browser/ui/webui/ntp/foreign_session_handler.cc:268: if (base::Base64Encode(favicon_data, &encoded_favicon_data)) On 2012/04/24 18:08:12, Evan Stade wrote: ...
8 years, 8 months ago (2012-04-24 18:11:27 UTC) #3
Patrick Dubroy
http://codereview.chromium.org/10205014/diff/1/chrome/browser/ui/webui/ntp/foreign_session_handler.cc File chrome/browser/ui/webui/ntp/foreign_session_handler.cc (right): http://codereview.chromium.org/10205014/diff/1/chrome/browser/ui/webui/ntp/foreign_session_handler.cc#newcode268 chrome/browser/ui/webui/ntp/foreign_session_handler.cc:268: if (base::Base64Encode(favicon_data, &encoded_favicon_data)) On 2012/04/24 18:11:27, Evan Stade wrote: ...
8 years, 8 months ago (2012-04-25 09:32:54 UTC) #4
Evan Stade
On 2012/04/25 09:32:54, dubroy wrote: > http://codereview.chromium.org/10205014/diff/1/chrome/browser/ui/webui/ntp/foreign_session_handler.cc > File chrome/browser/ui/webui/ntp/foreign_session_handler.cc (right): > > http://codereview.chromium.org/10205014/diff/1/chrome/browser/ui/webui/ntp/foreign_session_handler.cc#newcode268 > ...
8 years, 8 months ago (2012-04-25 19:34:21 UTC) #5
Nicolas Zea
On 2012/04/25 19:34:21, Evan Stade wrote: > On 2012/04/25 09:32:54, dubroy wrote: > > > ...
8 years, 8 months ago (2012-04-25 20:41:29 UTC) #6
arv (Not doing code reviews)
http://codereview.chromium.org/10205014/diff/1/chrome/browser/resources/ntp4/other_sessions.js File chrome/browser/resources/ntp4/other_sessions.js (right): http://codereview.chromium.org/10205014/diff/1/chrome/browser/resources/ntp4/other_sessions.js#newcode180 chrome/browser/resources/ntp4/other_sessions.js:180: var favicon_url; no underscores in js http://codereview.chromium.org/10205014/diff/1/chrome/browser/resources/ntp4/other_sessions.js#newcode185 chrome/browser/resources/ntp4/other_sessions.js:185: a.style.backgroundImage ...
8 years, 8 months ago (2012-04-25 22:06:21 UTC) #7
Patrick Dubroy
On 2012/04/25 19:34:21, Evan Stade wrote: > On 2012/04/25 09:32:54, dubroy wrote: > > > ...
8 years, 8 months ago (2012-04-26 16:49:14 UTC) #8
Evan Stade
On 2012/04/26 16:49:14, dubroy wrote: > On 2012/04/25 19:34:21, Evan Stade wrote: > > On ...
8 years, 8 months ago (2012-04-26 19:26:16 UTC) #9
Patrick Dubroy
Ok, implemented SessionFaviconSource (chrome://session-favicon/) as suggested by Evan. http://codereview.chromium.org/10205014/diff/1/chrome/browser/resources/ntp4/other_sessions.js File chrome/browser/resources/ntp4/other_sessions.js (right): http://codereview.chromium.org/10205014/diff/1/chrome/browser/resources/ntp4/other_sessions.js#newcode180 chrome/browser/resources/ntp4/other_sessions.js:180: var ...
8 years, 8 months ago (2012-04-27 18:27:02 UTC) #10
Evan Stade
8 years, 8 months ago (2012-04-27 19:56:28 UTC) #11
thanks. lgtm

http://codereview.chromium.org/10205014/diff/18010/chrome/browser/ui/webui/nt...
File chrome/browser/ui/webui/ntp/foreign_session_handler.cc (right):

http://codereview.chromium.org/10205014/diff/18010/chrome/browser/ui/webui/nt...
chrome/browser/ui/webui/ntp/foreign_session_handler.cc:78:
profile->GetChromeURLDataManager()->AddDataSource(
ChromeURLDataManager::AddDataSource(

http://codereview.chromium.org/10205014/diff/18010/chrome/browser/ui/webui/se...
File chrome/browser/ui/webui/session_favicon_source.cc (right):

http://codereview.chromium.org/10205014/diff/18010/chrome/browser/ui/webui/se...
chrome/browser/ui/webui/session_favicon_source.cc:23: SessionModelAssociator*
SessionFaviconSource::GetSessionModelAssociator() {
I don't see a strong need for this function

Powered by Google App Engine
This is Rietveld 408576698