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

Issue 1309363007: [sessions] Remove most knowledge of //chrome from core tab restore code (Closed)

Created:
5 years, 3 months ago by blundell
Modified:
5 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@tab_restore_service_client
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sessions] Remove most knowledge of //chrome from core tab restore code As part of the effort to componentize tab restore code, this CL removes most remaining knowledge of //chrome from that code, replacing it with abstraction through TabRestoreServiceClient: - Profile::GetPath() - Metrics for recording extensions apps launching - Usage of //chrome-level URL constant BUG=528883 Committed: https://crrev.com/a068d381e200d311d6fa7e387507924d06494b89 Cr-Commit-Position: refs/heads/master@{#348206}

Patch Set 1 #

Patch Set 2 : Self-review #

Total comments: 3

Patch Set 3 : Make OnTabRestored() optional #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -54 lines) Patch
M chrome/browser/sessions/chrome_tab_restore_service_client.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sessions/chrome_tab_restore_service_client.cc View 1 2 chunks +39 lines, -0 lines 0 comments Download
M chrome/browser/sessions/in_memory_tab_restore_service.h View 1 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/sessions/in_memory_tab_restore_service.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/sessions/persistent_tab_restore_service.cc View 5 chunks +5 lines, -14 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service_factory.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sessions/tab_restore_service_helper.h View 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service_helper.cc View 1 6 chunks +8 lines, -30 lines 0 comments Download
M components/sessions/core/tab_restore_service_client.h View 1 2 4 chunks +13 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (3 generated)
blundell
5 years, 3 months ago (2015-09-09 12:02:02 UTC) #2
sky
https://codereview.chromium.org/1309363007/diff/20001/chrome/browser/sessions/chrome_tab_restore_service_client.h File chrome/browser/sessions/chrome_tab_restore_service_client.h (right): https://codereview.chromium.org/1309363007/diff/20001/chrome/browser/sessions/chrome_tab_restore_service_client.h#newcode27 chrome/browser/sessions/chrome_tab_restore_service_client.h:27: void OnTabRestored(const GURL& url) override; Is it possible to ...
5 years, 3 months ago (2015-09-09 15:57:59 UTC) #3
blundell
https://codereview.chromium.org/1309363007/diff/20001/chrome/browser/sessions/chrome_tab_restore_service_client.h File chrome/browser/sessions/chrome_tab_restore_service_client.h (right): https://codereview.chromium.org/1309363007/diff/20001/chrome/browser/sessions/chrome_tab_restore_service_client.h#newcode27 chrome/browser/sessions/chrome_tab_restore_service_client.h:27: void OnTabRestored(const GURL& url) override; On 2015/09/09 15:57:59, sky ...
5 years, 3 months ago (2015-09-09 16:03:13 UTC) #4
sky
https://codereview.chromium.org/1309363007/diff/20001/chrome/browser/sessions/chrome_tab_restore_service_client.h File chrome/browser/sessions/chrome_tab_restore_service_client.h (right): https://codereview.chromium.org/1309363007/diff/20001/chrome/browser/sessions/chrome_tab_restore_service_client.h#newcode27 chrome/browser/sessions/chrome_tab_restore_service_client.h:27: void OnTabRestored(const GURL& url) override; On 2015/09/09 16:03:13, blundell ...
5 years, 3 months ago (2015-09-09 19:52:05 UTC) #5
blundell
On 2015/09/09 19:52:05, sky wrote: > https://codereview.chromium.org/1309363007/diff/20001/chrome/browser/sessions/chrome_tab_restore_service_client.h > File chrome/browser/sessions/chrome_tab_restore_service_client.h (right): > > https://codereview.chromium.org/1309363007/diff/20001/chrome/browser/sessions/chrome_tab_restore_service_client.h#newcode27 > ...
5 years, 3 months ago (2015-09-10 13:26:15 UTC) #7
sky
Your logic sounds right. LGTM
5 years, 3 months ago (2015-09-10 17:58:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309363007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309363007/60001
5 years, 3 months ago (2015-09-10 18:45:26 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 3 months ago (2015-09-10 19:20:04 UTC) #11
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/a068d381e200d311d6fa7e387507924d06494b89 Cr-Commit-Position: refs/heads/master@{#348206}
5 years, 3 months ago (2015-09-10 19:20:47 UTC) #12
commit-bot: I haz the power
5 years, 2 months ago (2015-09-23 12:12:59 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a068d381e200d311d6fa7e387507924d06494b89
Cr-Commit-Position: refs/heads/master@{#348206}

Powered by Google App Engine
This is Rietveld 408576698