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

Issue 557833007: Remove Increment/DecrementKeepAliveCount from AppsClient (Closed)

Created:
6 years, 3 months ago by hashimoto
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove Increment/DecrementKeepAliveCount from AppsClient Only chrome is interested in implementing these methods. Move the code to ChromeAppDelegate. BUG=411352 Committed: https://crrev.com/f9f37147210c1abf1269dc97b7b0bdef4bf28a5f Cr-Commit-Position: refs/heads/master@{#296625}

Patch Set 1 : #

Patch Set 2 : Pass ScopedKeepAlive #

Total comments: 10

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -113 lines) Patch
M athena/extensions/athena_app_window_client_base.h View 1 chunk +0 lines, -2 lines 0 comments Download
M athena/extensions/athena_app_window_client_base.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/apps/app_browsertest_util.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
A + chrome/browser/apps/scoped_keep_alive.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
A + chrome/browser/apps/scoped_keep_alive.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/power/process_power_collector_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_views.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_shower_views.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_shower_views_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/profile_loader.cc View 1 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/ui/app_list/scoped_keep_alive.h View 1 1 chunk +0 lines, -20 lines 0 comments Download
D chrome/browser/ui/app_list/scoped_keep_alive.cc View 1 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/browser/ui/apps/chrome_app_delegate.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/apps/chrome_app_delegate.cc View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/apps/chrome_app_window_client.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/apps/chrome_app_window_client.cc View 1 2 4 chunks +5 lines, -14 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/browser/app_window/app_window.cc View 2 chunks +0 lines, -8 lines 0 comments Download
M extensions/browser/app_window/app_window_client.h View 1 chunk +0 lines, -5 lines 0 comments Download
M extensions/shell/browser/shell_app_window_client.h View 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_app_window_client.cc View 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
hashimoto
This change may affect the behavior of AppListViewDelegate which uses ChromeAppDelegate. (https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/app_list/app_list_view_delegate.cc&cl=GROK&l=289) Is it OK ...
6 years, 3 months ago (2014-09-22 09:57:11 UTC) #3
tapted
+matt CC in case you have an opinion about the below On 2014/09/22 09:57:11, hashimoto ...
6 years, 3 months ago (2014-09-22 10:36:37 UTC) #4
Matt Giuca
> A constructor argument probably makes the most sense. I agree this sounds like the ...
6 years, 3 months ago (2014-09-23 05:28:27 UTC) #5
hashimoto
Changed ChromeAppDelegate's ctor to take scoped_ptr<ScopedKeepAlive> as an argument. PTAL
6 years, 3 months ago (2014-09-24 06:34:17 UTC) #7
tapted
nice - lgtm with a few minor changes. https://codereview.chromium.org/557833007/diff/60001/chrome/browser/apps/app_browsertest_util.cc File chrome/browser/apps/app_browsertest_util.cc (right): https://codereview.chromium.org/557833007/diff/60001/chrome/browser/apps/app_browsertest_util.cc#newcode206 chrome/browser/apps/app_browsertest_util.cc:206: new ...
6 years, 3 months ago (2014-09-24 07:12:41 UTC) #8
hashimoto
https://codereview.chromium.org/557833007/diff/60001/chrome/browser/apps/app_browsertest_util.cc File chrome/browser/apps/app_browsertest_util.cc (right): https://codereview.chromium.org/557833007/diff/60001/chrome/browser/apps/app_browsertest_util.cc#newcode206 chrome/browser/apps/app_browsertest_util.cc:206: new ChromeAppDelegate(scoped_ptr<ScopedKeepAlive>()), On 2014/09/24 07:12:41, tapted wrote: > to ...
6 years, 3 months ago (2014-09-24 09:03:46 UTC) #9
hashimoto
rockot@: could you review this change as an owner of chrome/browser/extensions and extensions? derat@: could ...
6 years, 3 months ago (2014-09-24 09:05:25 UTC) #11
Daniel Erat
lgtm for chrome/browser/power
6 years, 3 months ago (2014-09-24 14:39:06 UTC) #12
oshima
athena lgtm
6 years, 3 months ago (2014-09-24 17:02:18 UTC) #13
Ken Rockot(use gerrit already)
lgtm
6 years, 3 months ago (2014-09-24 17:04:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/557833007/80001
6 years, 3 months ago (2014-09-25 02:04:15 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:80001) as a03756b1d0e0f2a46f1026c3768cb5b93f6f8b3e
6 years, 3 months ago (2014-09-25 02:10:44 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-25 02:11:44 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f9f37147210c1abf1269dc97b7b0bdef4bf28a5f
Cr-Commit-Position: refs/heads/master@{#296625}

Powered by Google App Engine
This is Rietveld 408576698