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

Issue 10854173: Use a placeholder logo image/label in SearchViewController. (Closed)

Created:
8 years, 4 months ago by msw
Modified:
8 years, 4 months ago
CC:
chromium-reviews, tfarina, oshima+watch_chromium.org, samarth
Visibility:
Public.

Description

Use a placeholder logo image/label in SearchViewController. Note: Logos still appear as red rectangle placeholders. Use ImageView and Label logos in SearchViewController. These are scoped_ptrs owned by the client, to avoid accidental leaks. Add SearchViewController::GetLogoView to get the proper view. Use the placeholder IDR_GOOGLE_LOGO_LG image as appropriate. Otherwise, fallback to a label with the short name (or empty for NULL DSE). Remove unused FixedSizeLayoutManager. BUG=140955 TEST=Instant Extended API still shows a red rectangle logo placeholder. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152699

Patch Set 1 #

Patch Set 2 : Refinements, etc. #

Patch Set 3 : Sync and merge. #

Total comments: 4

Patch Set 4 : Address comments; restore browser_context_ member. #

Total comments: 4

Patch Set 5 : Address comments. #

Total comments: 10

Patch Set 6 : Address comments. #

Patch Set 7 : Sync and rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -43 lines) Patch
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/search_view_controller.h View 1 2 3 4 5 6 7 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/search_view_controller.cc View 1 2 3 4 5 6 10 chunks +58 lines, -37 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
msw
Hey David, please take a look; thanks!
8 years, 4 months ago (2012-08-15 21:46:51 UTC) #1
msw
Hold up, your crrev.com/150849 removed the browser_context_ used here... I'll let you know when it's ...
8 years, 4 months ago (2012-08-15 22:04:40 UTC) #2
dhollowa
https://chromiumcodereview.appspot.com/10854173/diff/8001/chrome/browser/ui/views/search_view_controller.cc File chrome/browser/ui/views/search_view_controller.cc (right): https://chromiumcodereview.appspot.com/10854173/diff/8001/chrome/browser/ui/views/search_view_controller.cc#newcode26 chrome/browser/ui/views/search_view_controller.cc:26: #include "ui/views/controls/label.h" nit: sort https://chromiumcodereview.appspot.com/10854173/diff/8001/chrome/browser/ui/views/search_view_controller.cc#newcode458 chrome/browser/ui/views/search_view_controller.cc:458: return logo_image_ ? ...
8 years, 4 months ago (2012-08-15 22:23:51 UTC) #3
msw
Addressed comments, etc. Please take another look, thanks! https://chromiumcodereview.appspot.com/10854173/diff/8001/chrome/browser/ui/views/search_view_controller.cc File chrome/browser/ui/views/search_view_controller.cc (right): https://chromiumcodereview.appspot.com/10854173/diff/8001/chrome/browser/ui/views/search_view_controller.cc#newcode26 chrome/browser/ui/views/search_view_controller.cc:26: #include ...
8 years, 4 months ago (2012-08-15 22:32:53 UTC) #4
samarth
https://chromiumcodereview.appspot.com/10854173/diff/7002/chrome/browser/ui/views/search_view_controller.h File chrome/browser/ui/views/search_view_controller.h (right): https://chromiumcodereview.appspot.com/10854173/diff/7002/chrome/browser/ui/views/search_view_controller.h#newcode162 chrome/browser/ui/views/search_view_controller.h:162: views::Label* logo_label_; It's probably worth adding a comment here ...
8 years, 4 months ago (2012-08-15 22:41:04 UTC) #5
dhollowa
lgtm https://chromiumcodereview.appspot.com/10854173/diff/7002/chrome/browser/ui/views/search_view_controller.h File chrome/browser/ui/views/search_view_controller.h (right): https://chromiumcodereview.appspot.com/10854173/diff/7002/chrome/browser/ui/views/search_view_controller.h#newcode43 chrome/browser/ui/views/search_view_controller.h:43: explicit SearchViewController(content::BrowserContext* browser_context, nit: no longer need |explicit|.
8 years, 4 months ago (2012-08-15 22:48:35 UTC) #6
msw
Comments addressed; landing. https://chromiumcodereview.appspot.com/10854173/diff/7002/chrome/browser/ui/views/search_view_controller.h File chrome/browser/ui/views/search_view_controller.h (right): https://chromiumcodereview.appspot.com/10854173/diff/7002/chrome/browser/ui/views/search_view_controller.h#newcode43 chrome/browser/ui/views/search_view_controller.h:43: explicit SearchViewController(content::BrowserContext* browser_context, On 2012/08/15 22:48:35, ...
8 years, 4 months ago (2012-08-15 23:15:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10854173/7004
8 years, 4 months ago (2012-08-15 23:16:16 UTC) #8
commit-bot: I haz the power
Presubmit check for 10854173-7004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-15 23:16:19 UTC) #9
msw
+Peter for OWNERS; please take a look, thanks!
8 years, 4 months ago (2012-08-15 23:18:54 UTC) #10
Peter Kasting
https://chromiumcodereview.appspot.com/10854173/diff/7004/chrome/browser/ui/views/search_view_controller.cc File chrome/browser/ui/views/search_view_controller.cc (right): https://chromiumcodereview.appspot.com/10854173/diff/7004/chrome/browser/ui/views/search_view_controller.cc#newcode409 chrome/browser/ui/views/search_view_controller.cc:409: const TemplateURL* default_template_url = This may be NULL. You ...
8 years, 4 months ago (2012-08-16 03:52:41 UTC) #11
msw
Comments addressed; please take another look, thanks! https://chromiumcodereview.appspot.com/10854173/diff/7004/chrome/browser/ui/views/search_view_controller.cc File chrome/browser/ui/views/search_view_controller.cc (right): https://chromiumcodereview.appspot.com/10854173/diff/7004/chrome/browser/ui/views/search_view_controller.cc#newcode409 chrome/browser/ui/views/search_view_controller.cc:409: const TemplateURL* ...
8 years, 4 months ago (2012-08-16 08:29:08 UTC) #12
msw
ping
8 years, 4 months ago (2012-08-17 19:44:42 UTC) #13
msw
Peter: ping; lmk if I should bug someone else.
8 years, 4 months ago (2012-08-20 22:24:05 UTC) #14
msw
+ben for review; please take a look, thanks!
8 years, 4 months ago (2012-08-21 21:40:47 UTC) #15
Ben Goodger (Google)
lgtm
8 years, 4 months ago (2012-08-21 21:49:49 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10854173/4013
8 years, 4 months ago (2012-08-21 22:11:20 UTC) #17
commit-bot: I haz the power
8 years, 4 months ago (2012-08-22 00:52:59 UTC) #18
Change committed as 152699

Powered by Google App Engine
This is Rietveld 408576698