DescriptionRevert 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 #Messages
Total messages: 6 (3 generated)
|