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

Issue 2060004: Removing the app launcher button on ChromeOS (Closed)

Created:
10 years, 7 months ago by Jay Civelli
Modified:
9 years, 7 months ago
Reviewers:
Finnur, sky
CC:
chromium-reviews, davemoore+watch_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Base URL:
git://codf21.jail/chromium.git
Visibility:
Public.

Description

Removing the app launcher button in the ChromeOS browser and making the app launcher pinned to the location bar. BUG=3190 TEST=The app launcher icon on the top-left corner of the browser should be gone. Opening a new tab by pressing the + button or typing CTRL-T should bring the app launcher, it should be located on top of the location bar. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47314

Patch Set 1 #

Patch Set 2 : Remove extra include. #

Patch Set 3 : Adding a new method to Browser so tests still work #

Patch Set 4 : Removing extra member variable #

Patch Set 5 : Adding a flag to disable app launcher on new tab for tests #

Patch Set 6 : Merge #

Patch Set 7 : Fix build and code clean-up #

Patch Set 8 : Fix build... #

Total comments: 7

Patch Set 9 : Fixing build and test #

Patch Set 10 : One more clean up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -135 lines) Patch
D chrome/app/theme/app_launcher_button.png View Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/browser.h View 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/browser.cc View 1 2 3 4 5 6 7 8 9 3 chunks +22 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/frame/browser_view.h View 1 2 3 4 5 6 7 8 4 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/frame/browser_view.cc View 1 2 3 4 5 6 7 8 12 chunks +4 lines, -43 lines 0 comments Download
M chrome/browser/chromeos/view_ids.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/defaults.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/defaults.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/views/info_bubble.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/views/info_bubble.cc View 1 2 3 4 5 6 7 5 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/views/pinned_contents_info_bubble.h View 2 chunks +3 lines, -24 lines 0 comments Download
M chrome/browser/views/pinned_contents_info_bubble.cc View 3 chunks +2 lines, -14 lines 0 comments Download
M chrome/browser/views/tabs/browser_tab_strip_controller.cc View 9 1 chunk +5 lines, -10 lines 0 comments Download
M chrome/common/chrome_switches.h View 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 5 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/automation/automation_proxy_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/in_process_browser_test.cc View 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 5 6 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jay Civelli
Finnur, could you review: chrome/browser/views/info_bubble.h chrome/browser/views/info_bubble.cc chrome/browser/views/pinned_contents_info_bubble.h chrome/browser/views/pinned_contents_info_bubble.cc Scott, could you review the rest?
10 years, 7 months ago (2010-05-12 21:43:50 UTC) #1
sky
LGTM
10 years, 7 months ago (2010-05-12 21:53:15 UTC) #2
Finnur
LGTM
10 years, 7 months ago (2010-05-12 23:01:32 UTC) #3
Jay Civelli
Scott, I had to add a switch to disable the new behavior of showing the ...
10 years, 7 months ago (2010-05-13 20:43:40 UTC) #4
sky
http://codereview.chromium.org/2060004/diff/27001/28003 File chrome/browser/browser.cc (right): http://codereview.chromium.org/2060004/diff/27001/28003#newcode1059 chrome/browser/browser.cc:1059: bool use_apps_panel = command_line->HasSwitch(switches::kAppsPanel); Can you move this into ...
10 years, 7 months ago (2010-05-13 22:32:38 UTC) #5
Jay Civelli
I had to change a test (AutomationProxyVisibleTest.WindowGetViewBounds) slightly. It tests that the automation proxy GetViewBounds ...
10 years, 7 months ago (2010-05-14 01:05:31 UTC) #6
sky
10 years, 7 months ago (2010-05-14 03:01:20 UTC) #7
LGTM with the following change.

http://codereview.chromium.org/2060004/diff/27001/28012
File chrome/browser/views/tabs/tab_strip.cc (right):

http://codereview.chromium.org/2060004/diff/27001/28012#newcode960
chrome/browser/views/tabs/tab_strip.cc:960: Browser* browser =
Browser::GetBrowserForController(&controller, NULL);
On 2010/05/14 01:05:31, Jay Civelli wrote:
> On 2010/05/13 22:32:39, sky wrote:
> > Can you use model_->GetSelectedTabContents()->GetBrowser()?
> 
> There is no TabContents::GetBrowser() method.
> I don't know any shorter way of getting the browser from the tab.
> 

Sorry, I meant:

model_->GetSelectedTabContents()->delegate()->GetBrowser().

Powered by Google App Engine
This is Rietveld 408576698