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

Issue 966323002: Re-order logic in StartPageService::HotwordEnabled(). (Closed)

Created:
5 years, 9 months ago by Anand Mistry (off Chromium)
Modified:
5 years, 9 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-order logic in StartPageService::HotwordEnabled(). HotwordServiceFactory::IsServiceAvailable() causes media device enumeration to start as a side effect. On some platforms, this can block resulting in a user-visible delay when opening the app list. Although this probably doesn't affect ChromeOS, it will affect OSX if voice search and hotwording are enabled on that platform in the future. This was discovered as a result of investigating crbug.com/458397 Committed: https://crrev.com/d841599fbec3dcfa9028b285ea845303d4704008 Cr-Commit-Position: refs/heads/master@{#318656}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/ui/app_list/start_page_service.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Anand Mistry (off Chromium)
5 years, 9 months ago (2015-03-02 01:51:13 UTC) #2
calamity
lgtm https://codereview.chromium.org/966323002/diff/1/chrome/browser/ui/app_list/start_page_service.cc File chrome/browser/ui/app_list/start_page_service.cc (right): https://codereview.chromium.org/966323002/diff/1/chrome/browser/ui/app_list/start_page_service.cc#newcode450 chrome/browser/ui/app_list/start_page_service.cc:450: HotwordServiceFactory::IsServiceAvailable(profile_); Why not service->IsServiceAvailable()?
5 years, 9 months ago (2015-03-02 04:20:20 UTC) #3
Anand Mistry (off Chromium)
https://codereview.chromium.org/966323002/diff/1/chrome/browser/ui/app_list/start_page_service.cc File chrome/browser/ui/app_list/start_page_service.cc (right): https://codereview.chromium.org/966323002/diff/1/chrome/browser/ui/app_list/start_page_service.cc#newcode450 chrome/browser/ui/app_list/start_page_service.cc:450: HotwordServiceFactory::IsServiceAvailable(profile_); On 2015/03/02 04:20:20, calamity wrote: > Why not ...
5 years, 9 months ago (2015-03-02 05:43:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/966323002/20001
5 years, 9 months ago (2015-03-02 05:43:59 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-02 06:45:24 UTC) #8
commit-bot: I haz the power
5 years, 9 months ago (2015-03-02 06:46:23 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d841599fbec3dcfa9028b285ea845303d4704008
Cr-Commit-Position: refs/heads/master@{#318656}

Powered by Google App Engine
This is Rietveld 408576698