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

Issue 11222003: Remove TabContents creation from ShellWindow. (Closed)

Created:
8 years, 2 months ago by Avi (use Gerrit)
Modified:
8 years, 1 month ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, creis+watch_chromium.org, jeremya+watch_chromium.org, Aaron Boodman, ajwong+watch_chromium.org, tapted
Visibility:
Public.

Description

Remove TabContents creation from ShellWindow. BUG=107201, 151493 TEST=no visible change Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163322

Patch Set 1 #

Total comments: 2

Patch Set 2 : compile fix #

Patch Set 3 : const fix #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -44 lines) Patch
M chrome/browser/ui/extensions/shell_window.h View 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 7 chunks +16 lines, -17 lines 3 comments Download
M chrome/browser/ui/tab_contents/tab_contents.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/shell_window_views.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension.cc View 1 2 5 chunks +12 lines, -15 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Avi (use Gerrit)
8 years, 2 months ago (2012-10-18 21:43:30 UTC) #1
benwells
https://codereview.chromium.org/11222003/diff/1/chrome/browser/ui/extensions/shell_window.cc File chrome/browser/ui/extensions/shell_window.cc (left): https://codereview.chromium.org/11222003/diff/1/chrome/browser/ui/extensions/shell_window.cc#oldcode176 chrome/browser/ui/extensions/shell_window.cc:176: infobar_helper->set_infobars_enabled(false); Will this re-enable infobars? Or does not having ...
8 years, 2 months ago (2012-10-19 01:51:24 UTC) #2
Avi (use Gerrit)
https://codereview.chromium.org/11222003/diff/1/chrome/browser/ui/extensions/shell_window.cc File chrome/browser/ui/extensions/shell_window.cc (left): https://codereview.chromium.org/11222003/diff/1/chrome/browser/ui/extensions/shell_window.cc#oldcode176 chrome/browser/ui/extensions/shell_window.cc:176: infobar_helper->set_infobars_enabled(false); Look at it this way. A TabContents just ...
8 years, 2 months ago (2012-10-19 01:59:01 UTC) #3
benwells
Cool. lgtm then! Thanks for doing this! BTW, it will be good to see passing ...
8 years, 2 months ago (2012-10-19 02:03:54 UTC) #4
Avi (use Gerrit)
Trybots indeed. This won't even compile until the media gallery CL lands (http://codereview.chromium.org/11138010/). Once that ...
8 years, 2 months ago (2012-10-19 02:12:29 UTC) #5
Avi (use Gerrit)
Ben, please look again. Two changes from the trybot runs. 1. ShellWindowViews::GetWindowIcon expects there to ...
8 years, 2 months ago (2012-10-19 23:18:08 UTC) #6
benwells
lgtm
8 years, 2 months ago (2012-10-21 23:19:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/11222003/8002
8 years, 2 months ago (2012-10-22 01:15:01 UTC) #8
commit-bot: I haz the power
Presubmit check for 11222003-8002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-22 01:15:04 UTC) #9
Avi (use Gerrit)
OtherBen: ui stuff
8 years, 2 months ago (2012-10-22 01:21:18 UTC) #10
Ben Goodger (Google)
lgtm for avi, comments for apps folk below https://codereview.chromium.org/11222003/diff/8002/chrome/browser/ui/extensions/shell_window.cc File chrome/browser/ui/extensions/shell_window.cc (right): https://codereview.chromium.org/11222003/diff/8002/chrome/browser/ui/extensions/shell_window.cc#newcode105 chrome/browser/ui/extensions/shell_window.cc:105: ConstrainedWindowTabHelper::CreateForWebContents(web_contents_.get()); ...
8 years, 2 months ago (2012-10-22 16:09:50 UTC) #11
Avi (use Gerrit)
I can answer this partially. There is an Apps feature called "media gallery". The UI ...
8 years, 2 months ago (2012-10-22 16:22:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/11222003/8002
8 years, 2 months ago (2012-10-22 16:23:27 UTC) #13
commit-bot: I haz the power
Change committed as 163322
8 years, 2 months ago (2012-10-22 18:17:24 UTC) #14
sail
https://chromiumcodereview.appspot.com/11222003/diff/8002/chrome/browser/ui/extensions/shell_window.cc File chrome/browser/ui/extensions/shell_window.cc (right): https://chromiumcodereview.appspot.com/11222003/diff/8002/chrome/browser/ui/extensions/shell_window.cc#newcode105 chrome/browser/ui/extensions/shell_window.cc:105: ConstrainedWindowTabHelper::CreateForWebContents(web_contents_.get()); On 2012/10/22 16:09:50, Ben Goodger (Google) wrote: > ...
8 years, 1 month ago (2012-11-01 22:22:20 UTC) #15
Ben Goodger (Google)
8 years, 1 month ago (2012-11-01 22:26:04 UTC) #16
I think showing a modal dialog for a WebContents is a reasonable feature
but should not be chrome-specific. I proposed a fix for this here:
http://code.google.com/p/chromium/issues/detail?id=157161

We've just about reached the limit of how much chrome dependencies I'm
willing to tolerate this apps stuff having in chrome. You should start
planning on fixing this stuff soon.

-Ben


On Thu, Nov 1, 2012 at 3:22 PM, <sail@chromium.org> wrote:

>
> https://chromiumcodereview.**appspot.com/11222003/diff/**
>
8002/chrome/browser/ui/**extensions/shell_window.cc<https://chromiumcodereview.appspot.com/11222003/diff/8002/chrome/browser/ui/extensions/shell_window.cc>
> File chrome/browser/ui/extensions/**shell_window.cc (right):
>
> https://chromiumcodereview.**appspot.com/11222003/diff/**
>
8002/chrome/browser/ui/**extensions/shell_window.cc#**newcode105<https://chromiumcodereview.appspot.com/11222003/diff/8002/chrome/browser/ui/extensions/shell_window.cc#newcode105>
> chrome/browser/ui/extensions/**shell_window.cc:105:
> ConstrainedWindowTabHelper::**CreateForWebContents(web_**contents_.get());
> On 2012/10/22 16:09:50, Ben Goodger (Google) wrote:
>
>> qq for apps folk: why is ShellWindow using ConstrainedWindows? this is
>>
> exactly
>
>> the kind of browser feature creep that I wanted to avoid by having the
>>
> app
>
>> frames live outside chrome.
>>
>
> Hi Ben. I think of ConstrainedWindows as a way to show a modal dialog on
> top of web contents.
>
> One way this is used today is that an extension API will make a call
> that needs to have a dialog shown. The API is usually associated with a
> web contents. We use this web contents to parent the dialog (either on a
> tab or a shell window).
>
> Does this seem reasonable?
>
>
https://chromiumcodereview.**appspot.com/11222003/<https://chromiumcodereview...
>

Powered by Google App Engine
This is Rietveld 408576698