Chromium Code Reviews

Issue 890005: Add a command line flag to disable infobars. (Closed)

Created:
10 years, 9 months ago by Eric
Modified:
9 years, 7 months ago
Reviewers:
amit, joi, Jói, stoyan
CC:
chromium-reviews, brettw+cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Allow TabContentsDelegate classes to specify whether InfoBars are enabled. Allow ChromeFrame to pass infobar enabled parameter to ExternalTabContainer. BUG=2444936 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42800

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 1

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Stats (+174 lines, -59 lines)
M chrome/browser/automation/automation_provider_win.cc View 1 chunk +1 line, -1 line 0 comments
M chrome/browser/external_tab_container.h View 3 chunks +7 lines, -1 line 0 comments
M chrome/browser/external_tab_container.cc View 5 chunks +11 lines, -3 lines 0 comments
M chrome/browser/tab_contents/tab_contents.cc View 3 chunks +14 lines, -0 lines 0 comments
M chrome/browser/tab_contents/tab_contents_delegate.h View 1 chunk +3 lines, -0 lines 0 comments
M chrome/test/automation/automation_messages.h View 4 chunks +6 lines, -1 line 0 comments
M chrome_frame/chrome_active_document.cc View 1 chunk +2 lines, -1 line 0 comments
M chrome_frame/chrome_frame_activex.cc View 1 chunk +1 line, -1 line 0 comments
M chrome_frame/chrome_frame_automation.h View 2 chunks +3 lines, -6 lines 0 comments
M chrome_frame/chrome_frame_automation.cc View 4 chunks +10 lines, -16 lines 0 comments
M chrome_frame/chrome_frame_npapi.cc View 1 chunk +1 line, -1 line 0 comments
M chrome_frame/chrome_frame_npapi_unittest.cc View 3 chunks +9 lines, -4 lines 0 comments
M chrome_frame/chrome_frame_plugin.h View 1 chunk +13 lines, -4 lines 0 comments
M chrome_frame/delete_chrome_history.cc View 1 chunk +1 line, -1 line 0 comments
M chrome_frame/test/automation_client_mock.cc View 6 chunks +72 lines, -12 lines 0 comments
M chrome_frame/test/chrome_frame_automation_mock.h View 6 chunks +20 lines, -7 lines 0 comments

Messages

Total messages: 20 (0 generated)
Jói
Looks good, a couple of minor comments. http://codereview.chromium.org/890005/diff/1/2 File chrome/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/890005/diff/1/2#newcode263 chrome/browser/tab_contents/tab_contents.cc:263: infobars_disabled_(CommandLine::ForCurrentProcess()->HasSwitch( Seeing ...
10 years, 9 months ago (2010-03-12 19:15:08 UTC) #1
amit
Drive by http://codereview.chromium.org/890005/diff/1/2 File chrome/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/890005/diff/1/2#newcode933 chrome/browser/tab_contents/tab_contents.cc:933: if (infobars_disabled_) { if this flag is ...
10 years, 9 months ago (2010-03-12 19:26:34 UTC) #2
Eric
http://codereview.chromium.org/890005/diff/1/2 File chrome/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/890005/diff/1/2#newcode263 chrome/browser/tab_contents/tab_contents.cc:263: infobars_disabled_(CommandLine::ForCurrentProcess()->HasSwitch( On 2010/03/12 19:15:08, Jói wrote: > Seeing as ...
10 years, 9 months ago (2010-03-12 21:19:18 UTC) #3
Jói
http://codereview.chromium.org/890005/diff/18001/2008 File chrome_frame/chrome_frame_activex.cc (right): http://codereview.chromium.org/890005/diff/18001/2008#newcode428 chrome_frame/chrome_frame_activex.cc:428: chrome_extra_arguments.append(CA2W(switches::kChromeFrameWidgetMode)); this also needs to get added when launching ...
10 years, 9 months ago (2010-03-12 21:32:02 UTC) #4
Eric
http://codereview.chromium.org/890005/diff/18001/2008 File chrome_frame/chrome_frame_activex.cc (right): http://codereview.chromium.org/890005/diff/18001/2008#newcode428 chrome_frame/chrome_frame_activex.cc:428: chrome_extra_arguments.append(CA2W(switches::kChromeFrameWidgetMode)); On 2010/03/12 21:32:03, Jói wrote: > this also ...
10 years, 9 months ago (2010-03-15 15:36:18 UTC) #5
Eric
Ping, Amit? On Mon, Mar 15, 2010 at 11:36 AM, <ericdingle@google.com> wrote: > > http://codereview.chromium.org/890005/diff/18001/2008 ...
10 years, 9 months ago (2010-03-16 13:08:36 UTC) #6
Jói
FYI, there is no full-tab mode in Firefox so perhaps just always assume widget mode. ...
10 years, 9 months ago (2010-03-16 13:09:49 UTC) #7
amit
Oops I thought I had replied to that... Sorry. On Tue, Mar 16, 2010 at ...
10 years, 9 months ago (2010-03-16 13:16:41 UTC) #8
amit
http://codereview.chromium.org/890005/diff/18001/2008 File chrome_frame/chrome_frame_activex.cc (right): http://codereview.chromium.org/890005/diff/18001/2008#newcode428 chrome_frame/chrome_frame_activex.cc:428: chrome_extra_arguments.append(CA2W(switches::kChromeFrameWidgetMode)); On 2010/03/15 15:36:18, ericdingle wrote: > On 2010/03/12 ...
10 years, 9 months ago (2010-03-16 13:18:23 UTC) #9
Eric
I've updated the implementation as per Amit's comments. Please have another look. http://codereview.chromium.org/890005/diff/18001/2008 File chrome_frame/chrome_frame_activex.cc ...
10 years, 9 months ago (2010-03-17 15:48:52 UTC) #10
joi
LGTM
10 years, 9 months ago (2010-03-17 19:03:25 UTC) #11
amit
Looks much better, Thanks. LGTM with a few nits. http://codereview.chromium.org/890005/diff/27002/28002 File chrome/browser/external_tab_container.cc (right): http://codereview.chromium.org/890005/diff/27002/28002#newcode393 chrome/browser/external_tab_container.cc:393: ...
10 years, 9 months ago (2010-03-17 19:36:23 UTC) #12
amit
BTW, are tests for this coming soon? On 2010/03/17 19:36:23, amit wrote: > Looks much ...
10 years, 9 months ago (2010-03-17 19:37:12 UTC) #13
Eric
I have addressed all comments. Amit, I have updated the CF tests for the changes, ...
10 years, 9 months ago (2010-03-22 19:21:58 UTC) #14
amit
LGTM++ http://codereview.chromium.org/890005/diff/42001/43010 File chrome_frame/chrome_frame_automation.h (right): http://codereview.chromium.org/890005/diff/42001/43010#newcode162 chrome_frame/chrome_frame_automation.h:162: ChromeFrameLaunchParams chrome_launch_params); Nice, thanks! nit: const &?
10 years, 9 months ago (2010-03-22 20:21:34 UTC) #15
Eric
Joi, can you submit this for me? Thanks. http://codereview.chromium.org/890005/diff/42001/43010 File chrome_frame/chrome_frame_automation.h (right): http://codereview.chromium.org/890005/diff/42001/43010#newcode162 chrome_frame/chrome_frame_automation.h:162: ChromeFrameLaunchParams ...
10 years, 9 months ago (2010-03-23 17:34:26 UTC) #16
joi
Committed as rev 42366. As discussed, I saw a failure of UI test SelfDeletePluginInNPNEvaluate with ...
10 years, 9 months ago (2010-03-23 19:11:32 UTC) #17
Eric
On 2010/03/23 19:11:32, joi wrote: > Committed as rev 42366. > > As discussed, I ...
10 years, 9 months ago (2010-03-25 18:36:42 UTC) #18
Jói
LGTM
10 years, 9 months ago (2010-03-25 18:47:29 UTC) #19
stoyan
10 years, 9 months ago (2010-03-26 16:37:16 UTC) #20
http://codereview.chromium.org/890005/diff/93001/94006
File chrome/test/automation/automation_messages.h (right):

http://codereview.chromium.org/890005/diff/93001/94006#newcode359
chrome/test/automation/automation_messages.h:359: bool infobars_enabled;
You have to update Read/Write/Log methods of ParamTraits<ExternalTabSettings>
(below).

Powered by Google App Engine