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

Issue 10196004: Changed ChromeURLDataManager to a ProfileKeyedService and made a Factory for it. (Closed)

Created:
8 years, 8 months ago by Kyle Horimoto
Modified:
8 years, 8 months ago
CC:
chromium-reviews, asanka, dbeam+watch-ntp_chromium.org, feature-media-reviews_chromium.org, nkostylev+watch_chromium.org, tbarzic+watch_chromium.org, yoshiki+watch_chromium.org, achuith+watch_chromium.org, mihaip+watch_chromium.org, Randy Smith (Not in Mondays), Aaron Boodman, eroman, estade+watch_chromium.org, James Su, mmenke
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Changed ChromeURLDataManager to a ProfileKeyedService and made a Factory for it. BUG=121009 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133958

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed style nit #

Total comments: 12

Patch Set 3 : Added static convenience method to ChromeURLDataManager, fixed style issues #

Total comments: 6

Patch Set 4 : Added static ChromeURLDataManager::AddSource() #

Total comments: 2

Patch Set 5 : Added ChromeURLDataManager::AddSource() to OTR' #

Patch Set 6 : Updated to HEAD #

Patch Set 7 : Made ChromeURLDataManager's destructor virtual #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -133 lines) Patch
M chrome/browser/extensions/extension_service.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_system.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 4 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/profiles/profile.h View 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/bookmarks_ui.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/certificate_viewer_ui.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chrome_url_data_manager.h View 1 2 3 4 5 6 4 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chrome_url_data_manager.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chrome_url_data_manager_factory.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chrome_url_data_manager_factory.cc View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/oobe_ui.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/register_page_ui.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/system_info_ui.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/conflicts_ui.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/crashes_ui.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/devtools_ui.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/downloads_ui.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_activity_ui.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extensions_ui.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/feedback_ui.cc View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/flags_ui.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/flash_ui.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/gpu_internals_ui.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/help/help_ui.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/inspect_ui.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/keyboard_ui.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/media/media_internals_ui.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/network_action_predictor/network_action_predictor_ui.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/suggestions_page_handler.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/options_ui2.cc View 1 2 3 4 5 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/plugins_ui.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/profiler_ui.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/quota_internals_ui.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/sessions_ui.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_ui.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/task_manager/task_manager_ui.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/tracing_ui.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/uber/uber_ui.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/web_ui_browsertest.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 3 chunks +5 lines, -9 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Kyle Horimoto
8 years, 8 months ago (2012-04-23 22:28:27 UTC) #1
Kyle Horimoto
+yoz for a chrome/browser/extensions/ OWNER
8 years, 8 months ago (2012-04-23 22:33:12 UTC) #2
eroman
lgtm for browser/net_internals/* On Mon, Apr 23, 2012 at 3:33 PM, <khorimoto@chromium.org> wrote: > +yoz ...
8 years, 8 months ago (2012-04-23 22:38:40 UTC) #3
Kyle Horimoto
+scottbyer sky: Need review for chrome/, chrome/test, and ChromeURLDataManager estade: Need review for chrome/browser/ui/webui erg: ...
8 years, 8 months ago (2012-04-23 22:41:13 UTC) #4
Scott Byer
cloud_print LGTM
8 years, 8 months ago (2012-04-23 22:43:13 UTC) #5
Yoyo Zhou
extensions LGTM
8 years, 8 months ago (2012-04-23 22:47:10 UTC) #6
Elliot Glaysher
lgtm/nits. https://chromiumcodereview.appspot.com/10196004/diff/1/chrome/browser/ui/webui/about_ui.cc File chrome/browser/ui/webui/about_ui.cc (right): https://chromiumcodereview.appspot.com/10196004/diff/1/chrome/browser/ui/webui/about_ui.cc#newcode1514 chrome/browser/ui/webui/about_ui.cc:1514: if (source) { } around multiline bodies.
8 years, 8 months ago (2012-04-23 22:59:05 UTC) #7
sky
LGTM
8 years, 8 months ago (2012-04-23 23:40:57 UTC) #8
Kyle Horimoto
https://chromiumcodereview.appspot.com/10196004/diff/1/chrome/browser/ui/webui/about_ui.cc File chrome/browser/ui/webui/about_ui.cc (right): https://chromiumcodereview.appspot.com/10196004/diff/1/chrome/browser/ui/webui/about_ui.cc#newcode1514 chrome/browser/ui/webui/about_ui.cc:1514: if (source) On 2012/04/23 22:59:05, Elliot Glaysher wrote: > ...
8 years, 8 months ago (2012-04-24 00:12:36 UTC) #9
Evan Stade
http://codereview.chromium.org/10196004/diff/8001/chrome/browser/ui/webui/chrome_url_data_manager_factory.cc File chrome/browser/ui/webui/chrome_url_data_manager_factory.cc (right): http://codereview.chromium.org/10196004/diff/8001/chrome/browser/ui/webui/chrome_url_data_manager_factory.cc#newcode2 chrome/browser/ui/webui/chrome_url_data_manager_factory.cc:2: // Author: khorimoto@google.com (Kyle Horimoto) ditto http://codereview.chromium.org/10196004/diff/8001/chrome/browser/ui/webui/chrome_url_data_manager_factory.cc#newcode14 chrome/browser/ui/webui/chrome_url_data_manager_factory.cc:14: GetInstance()->GetServiceForProfile(profile, ...
8 years, 8 months ago (2012-04-24 19:02:43 UTC) #10
Kyle Horimoto
http://codereview.chromium.org/10196004/diff/8001/chrome/browser/ui/webui/chrome_url_data_manager_factory.cc File chrome/browser/ui/webui/chrome_url_data_manager_factory.cc (right): http://codereview.chromium.org/10196004/diff/8001/chrome/browser/ui/webui/chrome_url_data_manager_factory.cc#newcode2 chrome/browser/ui/webui/chrome_url_data_manager_factory.cc:2: // Author: khorimoto@google.com (Kyle Horimoto) On 2012/04/24 19:02:43, Evan ...
8 years, 8 months ago (2012-04-24 21:09:59 UTC) #11
Evan Stade
thumbs up http://codereview.chromium.org/10196004/diff/14001/chrome/browser/ui/webui/chrome_url_data_manager.cc File chrome/browser/ui/webui/chrome_url_data_manager.cc (right): http://codereview.chromium.org/10196004/diff/14001/chrome/browser/ui/webui/chrome_url_data_manager.cc#newcode109 chrome/browser/ui/webui/chrome_url_data_manager.cc:109: void ChromeURLDataManager::AddDataSource(Profile *profile, DataSource* source) { star ...
8 years, 8 months ago (2012-04-24 21:22:13 UTC) #12
willchan no longer on Chromium
lgtm
8 years, 8 months ago (2012-04-24 21:35:46 UTC) #13
Kyle Horimoto
estade: Does this look okay now? http://codereview.chromium.org/10196004/diff/14001/chrome/browser/ui/webui/chrome_url_data_manager.cc File chrome/browser/ui/webui/chrome_url_data_manager.cc (right): http://codereview.chromium.org/10196004/diff/14001/chrome/browser/ui/webui/chrome_url_data_manager.cc#newcode109 chrome/browser/ui/webui/chrome_url_data_manager.cc:109: void ChromeURLDataManager::AddDataSource(Profile *profile, ...
8 years, 8 months ago (2012-04-24 22:17:49 UTC) #14
Evan Stade
lgtm
8 years, 8 months ago (2012-04-24 23:31:14 UTC) #15
Evan Stade
http://codereview.chromium.org/10196004/diff/17001/chrome/browser/profiles/off_the_record_profile_impl.cc File chrome/browser/profiles/off_the_record_profile_impl.cc (right): http://codereview.chromium.org/10196004/diff/17001/chrome/browser/profiles/off_the_record_profile_impl.cc#newcode105 chrome/browser/profiles/off_the_record_profile_impl.cc:105: ChromeURLDataManagerFactory::GetForProfile(this)->AddDataSource(icon_source); (not sure why the ones outside webui weren't ...
8 years, 8 months ago (2012-04-24 23:32:01 UTC) #16
Kyle Horimoto
http://codereview.chromium.org/10196004/diff/17001/chrome/browser/profiles/off_the_record_profile_impl.cc File chrome/browser/profiles/off_the_record_profile_impl.cc (right): http://codereview.chromium.org/10196004/diff/17001/chrome/browser/profiles/off_the_record_profile_impl.cc#newcode105 chrome/browser/profiles/off_the_record_profile_impl.cc:105: ChromeURLDataManagerFactory::GetForProfile(this)->AddDataSource(icon_source); On 2012/04/24 23:32:01, Evan Stade wrote: > (not ...
8 years, 8 months ago (2012-04-25 00:30:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/khorimoto@chromium.org/10196004/21001
8 years, 8 months ago (2012-04-25 00:31:00 UTC) #18
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/webui/options2/options_ui2.cc. While running patch -p1 --forward --force; patching file chrome/browser/ui/webui/options2/options_ui2.cc ...
8 years, 8 months ago (2012-04-25 00:31:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/khorimoto@chromium.org/10196004/21001
8 years, 8 months ago (2012-04-25 00:35:42 UTC) #20
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/webui/options2/options_ui2.cc. While running patch -p1 --forward --force; patching file chrome/browser/ui/webui/options2/options_ui2.cc ...
8 years, 8 months ago (2012-04-25 00:36:15 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/khorimoto@chromium.org/10196004/21001
8 years, 8 months ago (2012-04-25 17:37:54 UTC) #22
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/webui/options2/options_ui2.cc. While running patch -p1 --forward --force; patching file chrome/browser/ui/webui/options2/options_ui2.cc ...
8 years, 8 months ago (2012-04-25 17:38:55 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/khorimoto@chromium.org/10196004/21001
8 years, 8 months ago (2012-04-25 17:42:37 UTC) #24
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/webui/options2/options_ui2.cc. While running patch -p1 --forward --force; patching file chrome/browser/ui/webui/options2/options_ui2.cc ...
8 years, 8 months ago (2012-04-25 17:43:00 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/khorimoto@chromium.org/10196004/25001
8 years, 8 months ago (2012-04-25 17:46:39 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/khorimoto@chromium.org/10196004/11004
8 years, 8 months ago (2012-04-25 18:02:40 UTC) #27
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 19:40:48 UTC) #28
Change committed as 133958

Powered by Google App Engine
This is Rietveld 408576698