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

Issue 7574021: Remove frontend code that allows for dynamic profile setting, and read the profile off the browse... (Closed)

Created:
9 years, 4 months ago by Peter Kasting
Modified:
9 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Remove frontend code that allows for dynamic profile setting, and read the profile off the browser where possible. This matches common practice and various invariants that expect profiles to be constant for the life of the browser. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95889

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 6

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -527 lines) Patch
M chrome/browser/autocomplete/autocomplete.h View 1 2 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete.cc View 1 2 2 chunks +0 lines, -15 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.cc View 1 2 2 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_model.h View 1 2 2 chunks +1 line, -12 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_model.cc View 1 2 5 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h View 1 2 3 4 5 6 7 5 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc View 1 2 3 4 5 6 7 18 chunks +62 lines, -73 lines 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_toolbar_gtk.h View 1 2 4 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/gtk/browser_toolbar_gtk.cc View 1 2 6 chunks +8 lines, -23 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.h View 1 2 7 chunks +2 lines, -17 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 24 chunks +39 lines, -52 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/autocomplete/touch_autocomplete_popup_contents_view.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/autocomplete/touch_autocomplete_popup_contents_view.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.h View 1 2 3 4 5 6 7 3 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 5 17 chunks +47 lines, -76 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 4 5 6 7 9 chunks +22 lines, -7 lines 0 comments Download
D chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc View 1 2 1 chunk +0 lines, -38 lines 0 comments Download
M chrome/browser/ui/views/compact_nav/compact_location_bar_view.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.h View 1 2 3 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/keyword_hint_view.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 4 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 12 chunks +22 lines, -37 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.h View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.cc View 1 2 4 chunks +12 lines, -23 lines 0 comments Download
M chrome/browser/ui/views/location_bar/selected_keyword_view.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.h View 1 2 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 5 chunks +5 lines, -14 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Peter Kasting
9 years, 4 months ago (2011-08-04 22:10:55 UTC) #1
sky
Nice. I'm a bit worried about timing related issues around shutdown. By that I mean ...
9 years, 4 months ago (2011-08-08 16:02:29 UTC) #2
Peter Kasting
9 years, 4 months ago (2011-08-08 17:52:07 UTC) #3
http://codereview.chromium.org/7574021/diff/13023/chrome/browser/ui/gtk/bookm...
File chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc (right):

http://codereview.chromium.org/7574021/diff/13023/chrome/browser/ui/gtk/bookm...
chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc:291:
RemoveAllBookmarkButtons();
On 2011/08/08 16:02:29, sky wrote:
> I don't think you need this anymore. It made sense in SetProfile, but not at
> init time.

Unfortunately this function does more than removing all the buttons -- it also
adds back the "other bookmarks" and overflow buttons.

I think I'll rename it, though I don't know to what.

http://codereview.chromium.org/7574021/diff/13023/chrome/browser/ui/views/boo...
File chrome/browser/ui/views/bookmarks/bookmark_bar_view.h (right):

http://codereview.chromium.org/7574021/diff/13023/chrome/browser/ui/views/boo...
chrome/browser/ui/views/bookmarks/bookmark_bar_view.h:402: // Owning browser.
This is NULL during testing.
On 2011/08/08 16:02:29, sky wrote:
> Is the comment about NULL during testing applicable anymore?

No.

http://codereview.chromium.org/7574021/diff/13023/chrome/browser/ui/views/boo...
File chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc (right):

http://codereview.chromium.org/7574021/diff/13023/chrome/browser/ui/views/boo...
chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc:228:
MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask);
On 2011/08/08 16:02:29, sky wrote:
> Please add a comment as to why you need to do quit/run.

Sure.

Powered by Google App Engine
This is Rietveld 408576698