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

Issue 168253002: Cleanup many APIs to use ProfileKeyedAPI. (Closed)

Created:
6 years, 10 months ago by Yoyo Zhou
Modified:
6 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, felt, tzik, nhiroki, chromium-apps-reviews_chromium.org, kinuko+watch
Visibility:
Public.

Description

Cleanup many APIs to use ProfileKeyedAPI. This allows extra boilerplate BrowserContextKeyedServiceFactory code to be deleted. In this CL: ActivityLog, ExtensionSyncEventObserver, RuntimeAPI, DeveloperPrivateAPI, BluetoothAPI, AutotestPrivateAPI. BUG=179951 TBR=erg@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253928

Patch Set 1 : #

Total comments: 6

Patch Set 2 : profile->browsercontext #

Total comments: 1

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -609 lines) Patch
M chrome/browser/extensions/activity_log/activity_log.h View 1 6 chunks +17 lines, -33 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.cc View 1 5 chunks +17 lines, -32 lines 0 comments Download
M chrome/browser/extensions/api/activity_log_private/activity_log_private_api.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/autotest_private/autotest_private_api.h View 1 2 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/autotest_private/autotest_private_api.cc View 5 chunks +26 lines, -5 lines 0 comments Download
D chrome/browser/extensions/api/autotest_private/autotest_private_api_factory.h View 1 chunk +0 lines, -39 lines 0 comments Download
D chrome/browser/extensions/api/autotest_private/autotest_private_api_factory.cc View 1 chunk +0 lines, -54 lines 0 comments Download
M chrome/browser/extensions/api/autotest_private/autotest_private_apitest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_api.h View 1 3 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_api.cc View 1 4 chunks +17 lines, -6 lines 0 comments Download
D chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.h View 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc View 1 chunk +0 lines, -54 lines 0 comments Download
M chrome/browser/extensions/api/developer_private/developer_private_api.h View 1 4 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/developer_private/developer_private_api.cc View 1 2 chunks +16 lines, -4 lines 0 comments Download
D chrome/browser/extensions/api/developer_private/developer_private_api_factory.h View 1 chunk +0 lines, -42 lines 0 comments Download
D chrome/browser/extensions/api/developer_private/developer_private_api_factory.cc View 1 chunk +0 lines, -55 lines 0 comments Download
M chrome/browser/extensions/api/history/history_api.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_event_router_chromeos.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_event_router_factory.h View 1 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_event_router_factory.cc View 1 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/runtime/runtime_api.h View 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/runtime/runtime_api.cc View 2 chunks +9 lines, -0 lines 0 comments Download
D chrome/browser/extensions/api/runtime/runtime_api_factory.h View 1 chunk +0 lines, -44 lines 0 comments Download
D chrome/browser/extensions/api/runtime/runtime_api_factory.cc View 1 chunk +0 lines, -55 lines 0 comments Download
M chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.h View 1 4 chunks +21 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc View 1 5 chunks +29 lines, -8 lines 0 comments Download
D chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer_factory.h View 1 chunk +0 lines, -37 lines 0 comments Download
D chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer_factory.cc View 1 chunk +0 lines, -44 lines 0 comments Download
M chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 4 chunks +0 lines, -10 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Yoyo Zhou
I think this is mostly uninteresting, but it's good to check that the old factory.cc ...
6 years, 10 months ago (2014-02-18 20:37:20 UTC) #1
James Cook
I'm in bug-hell today, I won't get to this until tonight or tomorrow. Apologies.
6 years, 10 months ago (2014-02-18 22:56:36 UTC) #2
James Cook
I'll look at this in more detail tomorrow. I wonder if ProfileKeyedAPI can be made ...
6 years, 10 months ago (2014-02-19 02:37:42 UTC) #3
James Cook
Also, that doesn't seem to be the right bug number? Although the linked bug is ...
6 years, 10 months ago (2014-02-19 02:38:27 UTC) #4
Yoyo Zhou
Hmm, I should also change ProfileKeyedAPI to use BrowserContext instead of Profile, shouldn't I. I ...
6 years, 10 months ago (2014-02-19 02:49:05 UTC) #5
James Cook
OK. Let me know when you'd like me to look at this again.
6 years, 10 months ago (2014-02-19 17:06:28 UTC) #6
Yoyo Zhou
On 2014/02/19 17:06:28, James Cook wrote: > OK. Let me know when you'd like me ...
6 years, 10 months ago (2014-02-19 19:24:16 UTC) #7
James Cook
On 2014/02/19 19:24:16, Yoyo Zhou wrote: > On 2014/02/19 17:06:28, James Cook wrote: > > ...
6 years, 10 months ago (2014-02-19 19:32:46 UTC) #8
James Cook
On 2014/02/19 19:32:46, James Cook wrote: > On 2014/02/19 19:24:16, Yoyo Zhou wrote: > > ...
6 years, 10 months ago (2014-02-26 23:30:09 UTC) #9
Yoyo Zhou
On 2014/02/26 23:30:09, James Cook wrote: > On 2014/02/19 19:32:46, James Cook wrote: > > ...
6 years, 10 months ago (2014-02-26 23:32:42 UTC) #10
Yoyo Zhou
On 2014/02/26 23:32:42, Yoyo Zhou wrote: > On 2014/02/26 23:30:09, James Cook wrote: > > ...
6 years, 10 months ago (2014-02-27 00:17:10 UTC) #11
James Cook
What you have LGTM. Let me know if you want me to look again after ...
6 years, 10 months ago (2014-02-27 00:37:33 UTC) #12
Yoyo Zhou
Uploaded a new patch, changing Profile to BrowserContext in constructors. https://codereview.chromium.org/168253002/diff/40001/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc File chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc (right): https://codereview.chromium.org/168253002/diff/40001/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc#newcode239 ...
6 years, 10 months ago (2014-02-27 01:03:33 UTC) #13
Yoyo Zhou
https://codereview.chromium.org/168253002/diff/40001/chrome/browser/extensions/activity_log/activity_log.h File chrome/browser/extensions/activity_log/activity_log.h (right): https://codereview.chromium.org/168253002/diff/40001/chrome/browser/extensions/activity_log/activity_log.h#newcode172 chrome/browser/extensions/activity_log/activity_log.h:172: static const bool kServiceRedirectedInIncognito = true; On 2014/02/27 00:37:34, ...
6 years, 10 months ago (2014-02-27 01:05:21 UTC) #14
James Cook
Still LGTM. https://codereview.chromium.org/168253002/diff/160001/chrome/browser/extensions/api/profile_keyed_api_factory.h File chrome/browser/extensions/api/profile_keyed_api_factory.h (right): https://codereview.chromium.org/168253002/diff/160001/chrome/browser/extensions/api/profile_keyed_api_factory.h#newcode30 chrome/browser/extensions/api/profile_keyed_api_factory.h:30: static const bool kServiceIsNULLWhileTesting = false; One ...
6 years, 10 months ago (2014-02-27 01:15:58 UTC) #15
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 9 months ago (2014-02-27 04:54:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/168253002/160001
6 years, 9 months ago (2014-02-27 04:55:18 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 04:55:39 UTC) #18
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/api/profile_keyed_api_factory.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-02-27 04:55:40 UTC) #19
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 9 months ago (2014-02-27 06:27:47 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/168253002/180001
6 years, 9 months ago (2014-02-27 06:28:44 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 06:44:35 UTC) #22
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=52378
6 years, 9 months ago (2014-02-27 06:44:35 UTC) #23
Yoyo Zhou
TBR=erg for uninteresting chrome_brower_main_extra_parts_profiles changes
6 years, 9 months ago (2014-02-27 15:54:52 UTC) #24
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 9 months ago (2014-02-27 15:54:59 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/168253002/180001
6 years, 9 months ago (2014-02-27 15:55:37 UTC) #26
commit-bot: I haz the power
6 years, 9 months ago (2014-02-27 21:32:05 UTC) #27
Message was sent while issue was closed.
Change committed as 253928

Powered by Google App Engine
This is Rietveld 408576698