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

Issue 10825317: Convert banned calls to use Navigate in ash app list. (Closed)

Created:
8 years, 4 months ago by benwells
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, sadrul, ben+watch_chromium.org, tfarina, jennb
Visibility:
Public.

Description

Convert banned calls to use Navigate in ash app list. The ash app list uses FindLastActiveWithProfile and FindOrCreateTabbedBrowser, which are banned. This change replaces them with calls to chrome::Navigate. BUG=138632 TEST=Check the app list on ChromeOS can be used to show application options and links from the search box, with and without chrome browser windows open. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152018

Patch Set 1 #

Total comments: 6

Patch Set 2 : CRASH fixed #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -52 lines) Patch
M chrome/browser/ui/ash/app_list/extension_app_item.cc View 1 2 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/ui/ash/app_list/search_builder.cc View 1 2 2 chunks +6 lines, -21 lines 0 comments Download
M chrome/browser/ui/browser_navigator.h View 1 5 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 2 7 chunks +42 lines, -18 lines 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M ui/app_list/app_list_view.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
benwells
I am removing these calls as I want to move these files and the presubmit ...
8 years, 4 months ago (2012-08-13 08:47:20 UTC) #1
benwells
-beng, +Ben Goodger
8 years, 4 months ago (2012-08-13 08:47:52 UTC) #2
Ben Goodger (Google)
LGTM. Note that in practice, right now, this resolves to the same banned call, used ...
8 years, 4 months ago (2012-08-13 15:32:07 UTC) #3
xiyuan
https://chromiumcodereview.appspot.com/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc File chrome/browser/ui/views/ash/app_list/search_builder.cc (right): https://chromiumcodereview.appspot.com/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc#newcode245 chrome/browser/ui/views/ash/app_list/search_builder.cc:245: params.disposition = chrome::DispositionFromEventFlags(event_flags); Think we still need the special ...
8 years, 4 months ago (2012-08-13 16:20:55 UTC) #4
xiyuan
https://chromiumcodereview.appspot.com/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc File chrome/browser/ui/views/ash/app_list/search_builder.cc (right): https://chromiumcodereview.appspot.com/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc#newcode245 chrome/browser/ui/views/ash/app_list/search_builder.cc:245: params.disposition = chrome::DispositionFromEventFlags(event_flags); One simple work around might be ...
8 years, 4 months ago (2012-08-13 17:49:00 UTC) #5
jennb
drive-by... http://codereview.chromium.org/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc File chrome/browser/ui/views/ash/app_list/search_builder.cc (right): http://codereview.chromium.org/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc#newcode242 chrome/browser/ui/views/ash/app_list/search_builder.cc:242: chrome::NavigateParams params(NULL, Does it work to pass a ...
8 years, 4 months ago (2012-08-14 00:33:01 UTC) #6
benwells
http://codereview.chromium.org/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc File chrome/browser/ui/views/ash/app_list/search_builder.cc (right): http://codereview.chromium.org/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc#newcode242 chrome/browser/ui/views/ash/app_list/search_builder.cc:242: chrome::NavigateParams params(NULL, On 2012/08/14 00:33:01, jennb wrote: > Does ...
8 years, 4 months ago (2012-08-14 02:46:35 UTC) #7
jennb
On Mon, Aug 13, 2012 at 7:46 PM, <benwells@chromium.org> wrote: > > http://codereview.chromium.**org/10825317/diff/1/chrome/** > browser/ui/views/ash/app_list/**search_builder.cc<http://codereview.chromium.org/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc> ...
8 years, 4 months ago (2012-08-14 06:23:36 UTC) #8
benwells
On 2012/08/14 06:23:36, jennb wrote: > On Mon, Aug 13, 2012 at 7:46 PM, <mailto:benwells@chromium.org> ...
8 years, 4 months ago (2012-08-14 07:12:08 UTC) #9
benwells
The assumption about params.browser != NULL was all over the code :(. I think I've ...
8 years, 4 months ago (2012-08-14 08:49:03 UTC) #10
xiyuan
http://codereview.chromium.org/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc File chrome/browser/ui/views/ash/app_list/search_builder.cc (right): http://codereview.chromium.org/10825317/diff/1/chrome/browser/ui/views/ash/app_list/search_builder.cc#newcode245 chrome/browser/ui/views/ash/app_list/search_builder.cc:245: params.disposition = chrome::DispositionFromEventFlags(event_flags); Okay. Good to know that NormalizeDisposition ...
8 years, 4 months ago (2012-08-14 16:18:17 UTC) #11
jennb
> jennb: I believe you want to be able to navigate without a browser too, ...
8 years, 4 months ago (2012-08-14 18:16:51 UTC) #12
jennb
beng - ping on re-review? Hoping benwells can land this patch soon. I'm waiting on ...
8 years, 4 months ago (2012-08-15 18:47:20 UTC) #13
Ben Goodger (Google)
lgtm
8 years, 4 months ago (2012-08-16 17:55:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/10825317/15002
8 years, 4 months ago (2012-08-16 23:53:01 UTC) #15
commit-bot: I haz the power
8 years, 4 months ago (2012-08-17 02:18:01 UTC) #16
Change committed as 152018

Powered by Google App Engine
This is Rietveld 408576698