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

Issue 11682005: Remove some Profile-keyed factory boilerplate: management omnibox preference push_messaging. (Closed)

Created:
7 years, 12 months ago by Yoyo Zhou
Modified:
7 years, 11 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Remove some Profile-keyed factory boilerplate: management, omnibox, preference, push_messaging. Change ProfileKeyedAPIFactory<Foo>::GetInstance to Foo::GetFactoryInstance. BUG=159265 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175555

Patch Set 1 : #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : - #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : not creating with profile #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -524 lines) Patch
M chrome/browser/extensions/api/cookies/cookies_api.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/cookies/cookies_api.cc View 1 2 1 chunk +8 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/input_ime/input_ime_api.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/input_ime/input_ime_api.cc View 1 2 2 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/managed_mode/managed_mode_api.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/managed_mode/managed_mode_api.cc View 1 2 1 chunk +8 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api.h View 1 2 9 chunks +37 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api.cc View 1 2 14 chunks +44 lines, -40 lines 0 comments Download
M chrome/browser/extensions/api/management/management_api_browsertest.cc View 5 chunks +14 lines, -10 lines 0 comments Download
D chrome/browser/extensions/api/management/management_api_factory.h View 1 chunk +0 lines, -30 lines 0 comments Download
D chrome/browser/extensions/api/management/management_api_factory.cc View 1 chunk +0 lines, -36 lines 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_api.h View 1 2 4 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_api.cc View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
D chrome/browser/extensions/api/omnibox/omnibox_api_factory.h View 1 chunk +0 lines, -35 lines 0 comments Download
D chrome/browser/extensions/api/omnibox/omnibox_api_factory.cc View 1 chunk +0 lines, -44 lines 0 comments Download
M chrome/browser/extensions/api/preference/preference_api.h View 1 2 3 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/preference/preference_api.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
D chrome/browser/extensions/api/preference/preference_api_factory.h View 1 chunk +0 lines, -35 lines 0 comments Download
D chrome/browser/extensions/api/preference/preference_api_factory.cc View 1 chunk +0 lines, -46 lines 0 comments Download
M chrome/browser/extensions/api/processes/processes_api.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/processes/processes_api.cc View 1 2 2 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/profile_keyed_api_factory.h View 1 2 3 4 5 4 chunks +28 lines, -24 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_api.h View 1 2 3 4 5 6 3 chunks +18 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_api.cc View 1 2 2 chunks +18 lines, -2 lines 0 comments Download
D chrome/browser/extensions/api/push_messaging/push_messaging_api_factory.h View 1 chunk +0 lines, -34 lines 0 comments Download
D chrome/browser/extensions/api/push_messaging/push_messaging_api_factory.cc View 1 chunk +0 lines, -45 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_windows_api.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_windows_api.cc View 1 2 1 chunk +7 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_function_registry.cc View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 2 chunks +14 lines, -18 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 4 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Yoyo Zhou
7 years, 11 months ago (2013-01-03 20:51:46 UTC) #1
Jeffrey Yasskin
Your CL description could use some commas, but otherwise LGTM. https://chromiumcodereview.appspot.com/11682005/diff/2001/chrome/browser/extensions/api/management/management_api.h File chrome/browser/extensions/api/management/management_api.h (right): https://chromiumcodereview.appspot.com/11682005/diff/2001/chrome/browser/extensions/api/management/management_api.h#newcode197 ...
7 years, 11 months ago (2013-01-03 23:10:42 UTC) #2
Yoyo Zhou
now with more punctuation https://chromiumcodereview.appspot.com/11682005/diff/2001/chrome/browser/extensions/api/management/management_api.h File chrome/browser/extensions/api/management/management_api.h (right): https://chromiumcodereview.appspot.com/11682005/diff/2001/chrome/browser/extensions/api/management/management_api.h#newcode197 chrome/browser/extensions/api/management/management_api.h:197: ProfileKeyedAPIFactory<ManagementAPI>::GetInstance(); On 2013/01/03 23:10:42, Jeffrey ...
7 years, 11 months ago (2013-01-03 23:52:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/11682005/2001
7 years, 11 months ago (2013-01-04 00:15:47 UTC) #4
commit-bot: I haz the power
Failed to apply patch for chrome/browser/profiles/profile_dependency_manager.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-04 00:16:02 UTC) #5
Yoyo Zhou
On 2013/01/03 23:52:58, Yoyo Zhou wrote: > now with more punctuation > > https://chromiumcodereview.appspot.com/11682005/diff/2001/chrome/browser/extensions/api/management/management_api.h > ...
7 years, 11 months ago (2013-01-04 20:03:44 UTC) #6
Jeffrey Yasskin
On Fri, Jan 4, 2013 at 12:03 PM, <yoz@chromium.org> wrote: > Actually I decided to ...
7 years, 11 months ago (2013-01-04 21:18:13 UTC) #7
Yoyo Zhou
Implemented as described. jyasskin: another look? +mirandac: can you look at profiles? ben: TBRing for ...
7 years, 11 months ago (2013-01-04 22:34:40 UTC) #8
Jeffrey Yasskin
lgtm https://chromiumcodereview.appspot.com/11682005/diff/24001/chrome/browser/extensions/api/input_ime/input_ime_api.h File chrome/browser/extensions/api/input_ime/input_ime_api.h (right): https://chromiumcodereview.appspot.com/11682005/diff/24001/chrome/browser/extensions/api/input_ime/input_ime_api.h#newcode183 chrome/browser/extensions/api/input_ime/input_ime_api.h:183: static ProfileKeyedAPIFactory<InputImeAPI>* GetInstance(); GetInstance or GetFactoryInstance?
7 years, 11 months ago (2013-01-04 22:39:23 UTC) #9
Yoyo Zhou
https://chromiumcodereview.appspot.com/11682005/diff/24001/chrome/browser/extensions/api/input_ime/input_ime_api.h File chrome/browser/extensions/api/input_ime/input_ime_api.h (right): https://chromiumcodereview.appspot.com/11682005/diff/24001/chrome/browser/extensions/api/input_ime/input_ime_api.h#newcode183 chrome/browser/extensions/api/input_ime/input_ime_api.h:183: static ProfileKeyedAPIFactory<InputImeAPI>* GetInstance(); On 2013/01/04 22:39:23, Jeffrey Yasskin wrote: ...
7 years, 11 months ago (2013-01-04 22:43:31 UTC) #10
Yoyo Zhou
I had to make a tweak to the factory template to support PushMessagingAPI not being ...
7 years, 11 months ago (2013-01-05 00:06:13 UTC) #11
Miranda Callahan
On 2013/01/05 00:06:13, Yoyo Zhou wrote: > I had to make a tweak to the ...
7 years, 11 months ago (2013-01-07 14:09:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/11682005/31007
7 years, 11 months ago (2013-01-07 17:01:47 UTC) #13
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/api/push_messaging/push_messaging_api.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-07 17:01:59 UTC) #14
Ben Goodger (Google)
gyp lgtm
7 years, 11 months ago (2013-01-07 18:07:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/11682005/33005
7 years, 11 months ago (2013-01-07 20:02:01 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 21:37:18 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/11682005/33005
7 years, 11 months ago (2013-01-08 01:28:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/11682005/33005
7 years, 11 months ago (2013-01-08 16:02:22 UTC) #19
commit-bot: I haz the power
7 years, 11 months ago (2013-01-08 18:22:12 UTC) #20
Message was sent while issue was closed.
Change committed as 175555

Powered by Google App Engine
This is Rietveld 408576698