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

Issue 2856883002: Revert of Description: Replace layout constants in chrome/browser/extensions and (...) (Closed)

Created:
3 years, 7 months ago by vabr (Chromium)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tzik, kinuko+fileapi, nhiroki, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Description: Replace layout constants in chrome/browser/extensions and chrome/browser/first_run (patchset #27 id:520001 of https://codereview.chromium.org/2816293002/ ) Reason for revert: Likely broke some tests on sanitizers. More info at https://crbug.com/691897#c14. Original issue's description: > Description: Replace layout constants in chrome/browser/extensions and chrome/browser/first_run > > Changes in this patch as below: > 1. Replace references to constants in ui/views/layout/layout_constants.h with their > equivalents using ChromeLayoutProvider. > > 2. Changed the RequestFileSystemDialogView class to use a simpler FillLayout instead of > a BoxLayout. This class now subclasses DialogDelegateView instead of DialogDelegate for > simplicity. Removed the dependency on Extension and Volume datatypes from this class, which > enables us to easily test the dialog. The extension name, volume label and id are passed in. > We maintain the contract of invoking the cancel callback if the volume label is empty. That is > done in the caller ConsentProviderDelegate::ShowDialog(). > > 3. Added browser tests for displaying the TryChromeDialogView and RequestFileSystemDialogView dialogs. > > 4. Made the TryChromeDialogTest class a friend of the TryChromeDialogView class. This allows it to > instantiate an instance of this class. The TryChromeDialogView class no longer puts up a modal > dialog by default. This is controlled by the DialogType enum, which for chrome is always MODAL. > For the browser tests we pass in MODELESS here, as the loop is run by the test. The ShowModal() method > is renamed to ShowDialog(). It takes an additional enum UsageType which controls whether we are in testing > mode. In this case we always want the dialog to be displayed. > > BUG=691897 > TEST=Covered by tests RequestFileSystemDialogTest.InvokeDialog_default and TryChromeDialogTest.InvokeDialog_default > TBR=grt > > Review-Url: https://codereview.chromium.org/2816293002 > Cr-Commit-Position: refs/heads/master@{#468195} > Committed: https://chromium.googlesource.com/chromium/src/+/5ecf11b9c4f09559336a513b4d0486a3f74d2625 TBR=pkasting@chromium.org,lazyboy@chromium.org,grt@chromium.org,sky@chromium.org,ananta@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=691897

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+712 lines, -823 lines) Patch
M chrome/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/file_system/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 3 chunks +3 lines, -15 lines 0 comments Download
A chrome/browser/extensions/api/file_system/request_file_system_dialog_view.h View 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/file_system/request_file_system_dialog_view.cc View 1 chunk +142 lines, -0 lines 0 comments Download
A chrome/browser/first_run/try_chrome_dialog_view.h View 1 chunk +126 lines, -0 lines 0 comments Download
A chrome/browser/first_run/try_chrome_dialog_view.cc View 1 chunk +369 lines, -0 lines 0 comments Download
M chrome/browser/first_run/try_chrome_dialog_view_browsertest.cc View 3 chunks +0 lines, -34 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 2 chunks +0 lines, -13 lines 0 comments Download
D chrome/browser/ui/views/extensions/request_file_system_dialog_browsertest.cc View 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/browser/ui/views/extensions/request_file_system_dialog_view.h View 1 chunk +0 lines, -59 lines 0 comments Download
D chrome/browser/ui/views/extensions/request_file_system_dialog_view.cc View 1 chunk +0 lines, -127 lines 0 comments Download
D chrome/browser/ui/views/try_chrome_dialog_view.h View 1 chunk +0 lines, -146 lines 0 comments Download
D chrome/browser/ui/views/try_chrome_dialog_view.cc View 1 chunk +0 lines, -380 lines 0 comments Download
M chrome/test/BUILD.gn View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
vabr (Chromium)
Created Revert of Description: Replace layout constants in chrome/browser/extensions and chrome/browser/first_run
3 years, 7 months ago (2017-05-02 13:47:55 UTC) #2
chromium-reviews
Hi Please reland this The leaks have been fixed. Thanks Ananta On Tue, May 2, ...
3 years, 7 months ago (2017-05-02 13:49:13 UTC) #3
vabr (Chromium)
3 years, 7 months ago (2017-05-02 14:04:34 UTC) #5
Leaving a trace for other sheriffs -- I aborted the revert based on the above
message that the failure is being fixed by
https://codereview.chromium.org/2855663002. The bot is way behind in processing
the patches, I expect it to reach the mentioned fix in
https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%2...,
but cannot verify its effect right now.

Powered by Google App Engine
This is Rietveld 408576698