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

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed)

Created:
8 years, 9 months ago by Dan Beam
Modified:
8 years, 9 months ago
CC:
chromium-reviews, tfarina, arv (Not doing code reviews), Tyler Breisacher (Chromium), James Hawkins, kevers
Visibility:
Public.

Description

[uber page] Split up initialization of handlers from initialization of webui pages to make re-initialization work as expected. Additionally, ignore some events that might get us into a wasteful scenario. BUG=117671 TEST=Session restore or re-clicking same nav item loads settings correctly, no regressions. R=csilv,estade,mirandac,kevers Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126864

Patch Set 1 #

Total comments: 22

Patch Set 2 : rename Initialize -> InitializeHandler, SendPageValues -> InitializePage #

Total comments: 6

Patch Set 3 : review comments #

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : needs moar unix_hacker #

Patch Set 6 : code shuffling #

Total comments: 8

Patch Set 7 : review comments #

Patch Set 8 : cros compile fix, still issues #

Total comments: 2

Patch Set 9 : kevers rebase #

Total comments: 2

Patch Set 10 : CrOs fix + rebase #

Patch Set 11 : estade review comment #

Patch Set 12 : removing .get() from scoped_refptr #

Patch Set 13 : nits + rebase #

Patch Set 14 : copyright bumps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -171 lines) Patch
M chrome/browser/importer/importer_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/resources/uber/uber_frame.css View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/uber/uber_frame.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/advanced_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/advanced_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/stats_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/stats_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/system_options_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/system_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/virtual_keyboard_manager_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/virtual_keyboard_manager_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/extension_settings_handler.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/extension_settings_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/font_settings_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/font_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/handler_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/handler_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/import_data_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/import_data_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/pack_extension_handler.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/pack_extension_handler.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/password_manager_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/password_manager_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/personal_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/personal_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/search_engine_manager_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/search_engine_manager_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/autofill_options_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/autofill_options_handler2.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.cc View 1 2 4 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler2.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/pointer_handler2.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/pointer_handler2.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/ui/webui/options2/clear_browser_data_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/clear_browser_data_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/content_settings_handler2.h View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/content_settings_handler2.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/core_options_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/core_options_handler2.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/font_settings_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/font_settings_handler2.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/handler_options_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/handler_options_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/home_page_overlay_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options2/home_page_overlay_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/import_data_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/import_data_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/manage_profile_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/manage_profile_handler2.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/options_ui2.cc View 1 2 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options2/password_manager_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/password_manager_handler2.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/search_engine_manager_handler2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/search_engine_manager_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/options2/startup_pages_handler2.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/startup_pages_handler2.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Dan Beam
estade: chrome/browser/resources/* csilv: chrome/browser/ui/webui/options2/* tbreisacher & jhawkins: FYI (comments welcome)
8 years, 9 months ago (2012-03-13 05:58:02 UTC) #1
Dan Beam
On 2012/03/13 05:58:02, Dan Beam wrote: > estade: chrome/browser/resources/* > csilv: chrome/browser/ui/webui/options2/* > tbreisacher & ...
8 years, 9 months ago (2012-03-13 16:44:23 UTC) #2
Dan Beam
On 2012/03/13 16:44:23, Dan Beam wrote: > On 2012/03/13 05:58:02, Dan Beam wrote: > > ...
8 years, 9 months ago (2012-03-13 16:46:26 UTC) #3
Evan Stade
https://chromiumcodereview.appspot.com/9693032/diff/1/chrome/browser/resources/uber/uber_frame.css File chrome/browser/resources/uber/uber_frame.css (right): https://chromiumcodereview.appspot.com/9693032/diff/1/chrome/browser/resources/uber/uber_frame.css#newcode45 chrome/browser/resources/uber/uber_frame.css:45: pointer-events: none; is this necessary? I feel that sometimes ...
8 years, 9 months ago (2012-03-13 20:44:49 UTC) #4
James Hawkins
https://chromiumcodereview.appspot.com/9693032/diff/1/chrome/browser/resources/uber/uber_frame.css File chrome/browser/resources/uber/uber_frame.css (right): https://chromiumcodereview.appspot.com/9693032/diff/1/chrome/browser/resources/uber/uber_frame.css#newcode30 chrome/browser/resources/uber/uber_frame.css:30: -webkit-user-select: none; Why did you make this change?
8 years, 9 months ago (2012-03-13 20:46:47 UTC) #5
csilv
http://codereview.chromium.org/9693032/diff/1/chrome/browser/resources/uber/uber_frame.css File chrome/browser/resources/uber/uber_frame.css (right): http://codereview.chromium.org/9693032/diff/1/chrome/browser/resources/uber/uber_frame.css#newcode30 chrome/browser/resources/uber/uber_frame.css:30: -webkit-user-select: none; On 2012/03/13 20:46:47, James Hawkins wrote: > ...
8 years, 9 months ago (2012-03-13 20:59:48 UTC) #6
Dan Beam
https://chromiumcodereview.appspot.com/9693032/diff/1/chrome/browser/resources/uber/uber_frame.css File chrome/browser/resources/uber/uber_frame.css (right): https://chromiumcodereview.appspot.com/9693032/diff/1/chrome/browser/resources/uber/uber_frame.css#newcode30 chrome/browser/resources/uber/uber_frame.css:30: -webkit-user-select: none; On 2012/03/13 20:59:49, csilv wrote: > On ...
8 years, 9 months ago (2012-03-13 23:01:45 UTC) #7
Evan Stade
https://chromiumcodereview.appspot.com/9693032/diff/1/chrome/browser/resources/uber/uber_frame.css File chrome/browser/resources/uber/uber_frame.css (right): https://chromiumcodereview.appspot.com/9693032/diff/1/chrome/browser/resources/uber/uber_frame.css#newcode45 chrome/browser/resources/uber/uber_frame.css:45: pointer-events: none; On 2012/03/13 23:01:45, Dan Beam wrote: > ...
8 years, 9 months ago (2012-03-13 23:08:18 UTC) #8
Dan Beam
+mirandac for chrome/browser/importer/*
8 years, 9 months ago (2012-03-13 23:15:42 UTC) #9
Evan Stade
https://chromiumcodereview.appspot.com/9693032/diff/11002/chrome/browser/importer/importer_list.h File chrome/browser/importer/importer_list.h (right): https://chromiumcodereview.appspot.com/9693032/diff/11002/chrome/browser/importer/importer_list.h#newcode55 chrome/browser/importer/importer_list.h:55: bool AreProfilesLoaded() const { return source_profiles_loaded_; } name of ...
8 years, 9 months ago (2012-03-13 23:17:14 UTC) #10
Dan Beam
https://chromiumcodereview.appspot.com/9693032/diff/11002/chrome/browser/importer/importer_list.h File chrome/browser/importer/importer_list.h (right): https://chromiumcodereview.appspot.com/9693032/diff/11002/chrome/browser/importer/importer_list.h#newcode55 chrome/browser/importer/importer_list.h:55: bool AreProfilesLoaded() const { return source_profiles_loaded_; } On 2012/03/13 ...
8 years, 9 months ago (2012-03-13 23:32:32 UTC) #11
Dan Beam
ptal at earliest convenience
8 years, 9 months ago (2012-03-13 23:49:28 UTC) #12
James Hawkins
-me
8 years, 9 months ago (2012-03-13 23:51:05 UTC) #13
csilv
https://chromiumcodereview.appspot.com/9693032/diff/15088/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc File chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc (right): https://chromiumcodereview.appspot.com/9693032/diff/15088/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc#newcode139 chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc:139: AdapterPresentChanged(adapter_.get(), adapter_->IsPresent()); seems like this should be moved to ...
8 years, 9 months ago (2012-03-14 00:09:11 UTC) #14
Dan Beam
https://chromiumcodereview.appspot.com/9693032/diff/15088/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc File chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc (right): https://chromiumcodereview.appspot.com/9693032/diff/15088/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc#newcode139 chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc:139: AdapterPresentChanged(adapter_.get(), adapter_->IsPresent()); On 2012/03/14 00:09:11, csilv wrote: > seems ...
8 years, 9 months ago (2012-03-14 01:13:14 UTC) #15
csilv
lgtm
8 years, 9 months ago (2012-03-14 06:55:51 UTC) #16
Miranda Callahan
importer/* LGTM with comment nit -- there are so many different meanings for "profile" in ...
8 years, 9 months ago (2012-03-14 14:35:39 UTC) #17
csilv
+kevers for review (chromeos specific files).
8 years, 9 months ago (2012-03-14 18:34:20 UTC) #18
Dan Beam
https://chromiumcodereview.appspot.com/9693032/diff/8011/chrome/browser/importer/importer_list.h File chrome/browser/importer/importer_list.h (right): https://chromiumcodereview.appspot.com/9693032/diff/8011/chrome/browser/importer/importer_list.h#newcode54 chrome/browser/importer/importer_list.h:54: // Tells interested callers if class is done loading ...
8 years, 9 months ago (2012-03-14 20:23:59 UTC) #19
Evan Stade
lgtm
8 years, 9 months ago (2012-03-14 21:12:15 UTC) #20
Evan Stade
https://chromiumcodereview.appspot.com/9693032/diff/8013/chrome/browser/resources/uber/uber_frame.js File chrome/browser/resources/uber/uber_frame.js (right): https://chromiumcodereview.appspot.com/9693032/diff/8013/chrome/browser/resources/uber/uber_frame.js#newcode37 chrome/browser/resources/uber/uber_frame.js:37: assert(!e.target.classList.contains('selected')); seems like it will still be clickable when ...
8 years, 9 months ago (2012-03-14 21:12:24 UTC) #21
kevers
lgtm
8 years, 9 months ago (2012-03-14 22:11:53 UTC) #22
Dan Beam
8 years, 9 months ago (2012-03-14 22:59:43 UTC) #23
https://chromiumcodereview.appspot.com/9693032/diff/8013/chrome/browser/resou...
File chrome/browser/resources/uber/uber_frame.js (right):

https://chromiumcodereview.appspot.com/9693032/diff/8013/chrome/browser/resou...
chrome/browser/resources/uber/uber_frame.js:37:
assert(!e.target.classList.contains('selected'));
On 2012/03/14 21:12:25, Evan Stade wrote:
> seems like it will still be clickable when we implement better keyboard
support

Done.

Powered by Google App Engine
This is Rietveld 408576698