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

Issue 2822026: Mac: First run bubble. (Closed)

Created:
10 years, 6 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., Erik does not do reviews, Aaron Boodman
Visibility:
Public.

Description

Mac: First run bubble. Add a BaseBubbleController. Move ContentBlockedBubbleController to use it (other bubbles will follow in later CLs), add FIrstRunBubbleController which uses it. Move some l10n stuff to l10n_util and use that, too. Update first run code to actually call the bubble code. Fix a double free while I'm at it (the scoped_ptr<> in DoFirstRun() already does the freeing, no need to do it in FirstRunDone()) BUG=27489, 36366 TEST=Firstrun bubble shows up when starting chrome with --first-run, doesn't if starting chrome without that flag. Content blocked bubbles still work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50940

Patch Set 1 #

Patch Set 2 : progress #

Patch Set 3 : works! #

Patch Set 4 : '' #

Patch Set 5 : test and cleanups #

Patch Set 6 : '' #

Patch Set 7 : rebase #

Patch Set 8 : '' #

Patch Set 9 : merge merge merge #

Total comments: 6

Patch Set 10 : part 1 #

Total comments: 8

Patch Set 11 : comments miranda #

Patch Set 12 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+964 lines, -185 lines) Patch
A chrome/app/nibs/FirstRunBubble.xib View 2 1 chunk +498 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/base_bubble_controller.h View 2 3 4 5 6 7 8 9 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/base_bubble_controller.mm View 2 3 4 5 6 7 8 9 10 1 chunk +123 lines, -0 lines 2 comments Download
M chrome/browser/cocoa/content_blocked_bubble_controller.h View 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/content_blocked_bubble_controller.mm View 2 3 4 5 6 7 8 9 8 chunks +10 lines, -103 lines 0 comments Download
M chrome/browser/cocoa/content_blocked_bubble_controller_unittest.mm View 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/content_settings_dialog_controller.mm View 2 3 4 5 6 2 chunks +10 lines, -27 lines 0 comments Download
M chrome/browser/cocoa/extension_installed_bubble_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/cocoa/first_run_bubble_controller.h View 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/first_run_bubble_controller.mm View 2 3 4 5 6 7 8 9 10 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/first_run_bubble_controller_unittest.mm View 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/l10n_util.h View 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/l10n_util.mm View 2 2 chunks +29 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar/location_bar_view_mac.h View 7 8 9 10 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/location_bar/location_bar_view_mac.mm View 7 4 chunks +24 lines, -3 lines 0 comments Download
M chrome/browser/first_run_mac.mm View 2 3 4 5 6 7 8 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/gtk/first_run_bubble.cc View 2 chunks +1 line, -14 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.h View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/search_engines/util.h View 11 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/search_engines/util.cc View 11 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/views/first_run_bubble.cc View 5 chunks +5 lines, -21 lines 0 comments Download
M chrome/browser/views/location_bar/location_bar_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_dll.gypi View 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Nico
Jeremy: Maybe you can take a quick look at the first_run_mac.mm change. Miranda / Trung: ...
10 years, 6 months ago (2010-06-26 00:09:11 UTC) #1
viettrungluu
Part 1 http://codereview.chromium.org/2822026/diff/18001/19002 File chrome/browser/cocoa/base_bubble_controller.h (right): http://codereview.chromium.org/2822026/diff/18001/19002#newcode24 chrome/browser/cocoa/base_bubble_controller.h:24: @interface BaseBubbleController : NSWindowController<NSWindowDelegate> { Why "Base"? ...
10 years, 6 months ago (2010-06-26 01:21:17 UTC) #2
Nico
Response 1! http://codereview.chromium.org/2822026/diff/18001/19002 File chrome/browser/cocoa/base_bubble_controller.h (right): http://codereview.chromium.org/2822026/diff/18001/19002#newcode24 chrome/browser/cocoa/base_bubble_controller.h:24: @interface BaseBubbleController : NSWindowController<NSWindowDelegate> { On 2010/06/26 ...
10 years, 6 months ago (2010-06-26 01:29:32 UTC) #3
Miranda Callahan
Looks good, just a couple questions... http://codereview.chromium.org/2822026/diff/1004/22003 File chrome/browser/cocoa/base_bubble_controller.mm (right): http://codereview.chromium.org/2822026/diff/1004/22003#newcode59 chrome/browser/cocoa/base_bubble_controller.mm:59: [bubble_ setArrowLocation:info_bubble::kTopRight]; Will ...
10 years, 6 months ago (2010-06-26 16:42:49 UTC) #4
Nico
http://codereview.chromium.org/2822026/diff/1004/22003 File chrome/browser/cocoa/base_bubble_controller.mm (right): http://codereview.chromium.org/2822026/diff/1004/22003#newcode59 chrome/browser/cocoa/base_bubble_controller.mm:59: [bubble_ setArrowLocation:info_bubble::kTopRight]; On 2010/06/26 16:42:49, Miranda Callahan wrote: > ...
10 years, 6 months ago (2010-06-26 19:57:40 UTC) #5
Miranda Callahan
LGTM!
10 years, 6 months ago (2010-06-26 21:37:39 UTC) #6
jeremy
10 years, 6 months ago (2010-06-27 12:46:42 UTC) #7
LGTM

http://codereview.chromium.org/2822026/diff/31001/7004
File chrome/browser/cocoa/base_bubble_controller.mm (right):

http://codereview.chromium.org/2822026/diff/31001/7004#newcode84
chrome/browser/cocoa/base_bubble_controller.mm:84: NSWindow* window = [self
window];  // completes nib load
nit: Completes nib load.

http://codereview.chromium.org/2822026/diff/31001/7004#newcode120
chrome/browser/cocoa/base_bubble_controller.mm:120: // undone. That's ok.
Could you expand this comment: which radio group?  What's the context here?

Powered by Google App Engine
This is Rietveld 408576698