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

Issue 7670041: Add --use-more-webui runtime flag to toggle WebUI replacements for native dialogs. (Closed)

Created:
9 years, 4 months ago by flackr
Modified:
9 years, 3 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Add --use-more-webui runtime flag to toggle WebUI replacements for native dialogs. This adds the flag --use-more-webui to allow turning on WebUI replacements for native dialogs. This flag is automatically set when --use-pure-views is specified. Modifies replaced native dialogs to be toggled based on flag value. BookmarkEditor has also been refactored to use static constructors to EditDetails to describe what is being edited to make the code more readable. BUG=96935 TEST=Tested that webui dialogs can be turned on or left off with --use-more-webui. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101581 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101785

Patch Set 1 #

Total comments: 21

Patch Set 2 : Merge with trunk, use runtime flag for hung renderer now too, and reviewer suggestions. #

Total comments: 2

Patch Set 3 : Fix spelling error in comment. #

Total comments: 2

Patch Set 4 : Fix merge issues. #

Patch Set 5 : Fix EditDetails construction in unittests. #

Patch Set 6 : Fix default EditDetails constructor calls in views bookmark editor unittest. #

Patch Set 7 : Merge with trunk. #

Patch Set 8 : Merge with trunk and fix hung renderer dialog close. #

Total comments: 4

Patch Set 9 : Close the hung renderer by calling webui dialog close handler directly. #

Patch Set 10 : Merge with trunk. #

Patch Set 11 : Remove views include. #

Patch Set 12 : Update year to 2011 in touched file licenses. #

Patch Set 13 : Added missing include for linux_touch. #

Patch Set 14 : Merge with trunk. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -237 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +0 lines, -16 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_context_menu_controller.cc View 1 2 3 2 chunks +6 lines, -17 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_editor.h View 1 2 2 chunks +36 lines, -8 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_editor.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +40 lines, -8 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/certificate_viewer.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/bookmarks_helper.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -15 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/hung_renderer_controller.mm View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_bubble_gtk.cc View 1 2 3 4 5 6 1 chunk +2 lines, -10 lines 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk_unittest.cc View 1 2 3 4 9 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/gtk/certificate_viewer.h View 1 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/browser/ui/gtk/certificate_viewer.cc View 1 2 3 4 5 6 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.cc View 1 2 3 2 chunks +4 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc View 1 2 3 4 5 11 chunks +22 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/hung_renderer_view.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/bookmarks_ui.cc View 1 3 chunks +38 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/certificate_viewer.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/certificate_viewer.cc View 1 2 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui.cc View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_factory.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/html_dialog_ui.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/html_dialog_ui.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/hung_renderer_dialog.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/hung_renderer_dialog.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +25 lines, -7 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +3 lines, -36 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
flackr
9 years, 4 months ago (2011-08-17 21:28:24 UTC) #1
Rick Byers
Looks good! I especially like how the bookmark editor call sites are simplified and made ...
9 years, 4 months ago (2011-08-18 19:25:29 UTC) #2
flackr
http://codereview.chromium.org/7670041/diff/1/chrome/browser/bookmarks/bookmark_editor.cc File chrome/browser/bookmarks/bookmark_editor.cc (right): http://codereview.chromium.org/7670041/diff/1/chrome/browser/bookmarks/bookmark_editor.cc#newcode16 chrome/browser/bookmarks/bookmark_editor.cc:16: // TODO(flackr): Remove this and create runtime flag for ...
9 years, 4 months ago (2011-08-23 17:41:43 UTC) #3
Rick Byers
LGTM with one nit. Also please expand your CL description to include the EditDetails refactoring/clean-up ...
9 years, 4 months ago (2011-08-24 18:13:28 UTC) #4
flackr
I added to the description to mention the refactoring of BookmarkEditor's EditDetails constructor. +arv can ...
9 years, 4 months ago (2011-08-25 15:50:37 UTC) #5
arv (Not doing code reviews)
LGTM My only concern is about those ifdefs and making sure we don't include these ...
9 years, 4 months ago (2011-08-25 16:40:41 UTC) #6
flackr
On 2011/08/25 16:40:41, arv wrote: > LGTM > > My only concern is about those ...
9 years, 4 months ago (2011-08-25 18:14:19 UTC) #7
flackr
http://codereview.chromium.org/7670041/diff/9001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): http://codereview.chromium.org/7670041/diff/9001/chrome/browser/browser_resources.grd#newcode33 chrome/browser/browser_resources.grd:33: <if expr="is_posix and not is_macosx"> On 2011/08/25 16:40:41, arv ...
9 years, 4 months ago (2011-08-25 20:40:47 UTC) #8
flackr
arv, I had to change EditDetails constructor calls in the unit tests too. PTAL, thanks!
9 years, 3 months ago (2011-08-31 17:31:00 UTC) #9
Rick Byers
On 2011/08/31 17:31:00, flackr wrote: > arv, I had to change EditDetails constructor calls in ...
9 years, 3 months ago (2011-08-31 23:52:46 UTC) #10
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/gtk/certificate_viewer.h. While running svn propset svn:eol-style LF chrome/browser/ui/gtk/certificate_viewer.h --config-dir /mnt/data/b/commit-queue/subversion_config ...
9 years, 3 months ago (2011-09-01 22:52:59 UTC) #11
M-A Ruel
On 2011/09/01 22:52:59, I haz the power (commit-bot) wrote: > Can't apply patch for file ...
9 years, 3 months ago (2011-09-08 00:16:24 UTC) #12
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc. While running patch -p1 --forward --force; patching file chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc ...
9 years, 3 months ago (2011-09-08 20:59:23 UTC) #13
M-A Ruel
Sorry I was too slow and bookmark_bubble_view.cc was modified since last time you uploaded the ...
9 years, 3 months ago (2011-09-08 21:00:53 UTC) #14
flackr
Merged with trunk. http://codereview.chromium.org/7670041/diff/32001/chrome/browser/ui/webui/hung_renderer_dialog.cc File chrome/browser/ui/webui/hung_renderer_dialog.cc (right): http://codereview.chromium.org/7670041/diff/32001/chrome/browser/ui/webui/hung_renderer_dialog.cc#newcode101 chrome/browser/ui/webui/hung_renderer_dialog.cc:101: handler_->CloseDialog(); The close widget method in ...
9 years, 3 months ago (2011-09-09 17:58:51 UTC) #15
flackr
+arv, rbyers The merge required some small changes to HungRendererDialog's HideDialog method to work on ...
9 years, 3 months ago (2011-09-12 13:58:49 UTC) #16
arv (Not doing code reviews)
-1 I revoke my LGTM with the current changes. http://codereview.chromium.org/7670041/diff/32001/chrome/browser/ui/webui/hung_renderer_dialog.cc File chrome/browser/ui/webui/hung_renderer_dialog.cc (right): http://codereview.chromium.org/7670041/diff/32001/chrome/browser/ui/webui/hung_renderer_dialog.cc#newcode174 chrome/browser/ui/webui/hung_renderer_dialog.cc:174: ...
9 years, 3 months ago (2011-09-12 18:34:20 UTC) #17
flackr
http://codereview.chromium.org/7670041/diff/32001/chrome/browser/ui/webui/hung_renderer_dialog.cc File chrome/browser/ui/webui/hung_renderer_dialog.cc (right): http://codereview.chromium.org/7670041/diff/32001/chrome/browser/ui/webui/hung_renderer_dialog.cc#newcode174 chrome/browser/ui/webui/hung_renderer_dialog.cc:174: string16(), UTF8ToUTF16("chrome.send('DialogClose');")); On 2011/09/12 18:34:20, arv wrote: > This ...
9 years, 3 months ago (2011-09-12 20:17:19 UTC) #18
arv (Not doing code reviews)
lgtm
9 years, 3 months ago (2011-09-13 02:50:37 UTC) #19
commit-bot: I haz the power
Presubmit check for 7670041-47001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 3 months ago (2011-09-14 13:10:45 UTC) #20
flackr
Adding tim for lgtm on sync change in: chrome/browser/sync/test/integration/bookmarks_helper.cc
9 years, 3 months ago (2011-09-14 13:21:03 UTC) #21
Rick Campbell
bookmarks_helper.cc LGTM (sync owner)
9 years, 3 months ago (2011-09-16 17:31:08 UTC) #22
commit-bot: I haz the power
Change committed as 101581
9 years, 3 months ago (2011-09-16 22:09:32 UTC) #23
commit-bot: I haz the power
Change committed as 101785
9 years, 3 months ago (2011-09-19 18:33:27 UTC) #24
M-A Ruel
On 2011/09/19 18:33:27, I haz the power (commit-bot) wrote: > Change committed as 101785 Do ...
9 years, 3 months ago (2011-09-19 18:34:40 UTC) #25
flackr
On 2011/09/19 18:34:40, Marc-Antoine Ruel wrote: > On 2011/09/19 18:33:27, I haz the power (commit-bot) ...
9 years, 3 months ago (2011-09-19 18:50:05 UTC) #26
M-A Ruel
9 years, 3 months ago (2011-09-19 18:56:53 UTC) #27
On 2011/09/19 18:50:05, flackr wrote:
> My apologies, I was told that I could reopen and recommit. Is there any way to
> link the new issue to the old one so that reviewers know it is just a minor
> change to what they have already reviewed?

The best work flow is:
- Create a new git branch off trunk.
- Revert the revert.
- Upload. This will create the patchset 1 on a new issue with the change as it
was committed.
- Hack, upload again. Then the reviewer can diff against patchset 1.

Powered by Google App Engine
This is Rietveld 408576698