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. Review URL: http://codereview.chromium.org/2822026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50940 0039d316-1c4b-4281-b951-d872f2087c98
Showing
- chrome/app/nibs/FirstRunBubble.xib 498 additions, 0 deletionschrome/app/nibs/FirstRunBubble.xib
- chrome/browser/cocoa/base_bubble_controller.h 53 additions, 0 deletionschrome/browser/cocoa/base_bubble_controller.h
- chrome/browser/cocoa/base_bubble_controller.mm 123 additions, 0 deletionschrome/browser/cocoa/base_bubble_controller.mm
- chrome/browser/cocoa/content_blocked_bubble_controller.h 2 additions, 6 deletionschrome/browser/cocoa/content_blocked_bubble_controller.h
- chrome/browser/cocoa/content_blocked_bubble_controller.mm 10 additions, 103 deletionschrome/browser/cocoa/content_blocked_bubble_controller.mm
- chrome/browser/cocoa/content_blocked_bubble_controller_unittest.mm 1 addition, 1 deletion...owser/cocoa/content_blocked_bubble_controller_unittest.mm
- chrome/browser/cocoa/content_settings_dialog_controller.mm 10 additions, 27 deletionschrome/browser/cocoa/content_settings_dialog_controller.mm
- chrome/browser/cocoa/extension_installed_bubble_controller.mm 1 addition, 1 deletion...me/browser/cocoa/extension_installed_bubble_controller.mm
- chrome/browser/cocoa/first_run_bubble_controller.h 24 additions, 0 deletionschrome/browser/cocoa/first_run_bubble_controller.h
- chrome/browser/cocoa/first_run_bubble_controller.mm 62 additions, 0 deletionschrome/browser/cocoa/first_run_bubble_controller.mm
- chrome/browser/cocoa/first_run_bubble_controller_unittest.mm 43 additions, 0 deletionschrome/browser/cocoa/first_run_bubble_controller_unittest.mm
- chrome/browser/cocoa/l10n_util.h 13 additions, 0 deletionschrome/browser/cocoa/l10n_util.h
- chrome/browser/cocoa/l10n_util.mm 29 additions, 0 deletionschrome/browser/cocoa/l10n_util.mm
- chrome/browser/cocoa/location_bar/location_bar_view_mac.h 6 additions, 3 deletionschrome/browser/cocoa/location_bar/location_bar_view_mac.h
- chrome/browser/cocoa/location_bar/location_bar_view_mac.mm 24 additions, 3 deletionschrome/browser/cocoa/location_bar/location_bar_view_mac.mm
- chrome/browser/first_run_mac.mm 5 additions, 4 deletionschrome/browser/first_run_mac.mm
- chrome/browser/gtk/first_run_bubble.cc 1 addition, 14 deletionschrome/browser/gtk/first_run_bubble.cc
- chrome/browser/gtk/location_bar_view_gtk.h 1 addition, 1 deletionchrome/browser/gtk/location_bar_view_gtk.h
- chrome/browser/search_engines/util.cc 25 additions, 0 deletionschrome/browser/search_engines/util.cc
- chrome/browser/search_engines/util.h 18 additions, 0 deletionschrome/browser/search_engines/util.h
Loading
Please register or sign in to comment