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

Issue 10837055: Changes ProviderImpl to use a single DataFetcherFactory (Closed)

Created:
8 years, 4 months ago by aousterh
Modified:
8 years, 4 months ago
Reviewers:
hans
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Changes ProviderImpl to use a single DataFetcherFactory instead of a vector of DataFetcherFactories In the current implementation, any OS can only use at most one DataFetcher, so there will always be 0 or 1 DataFetcherFactories in the vector. Therefore it is simpler to use a single DataFetcherFactory instead of an array. Since DataFetcherFactory is a pointer itself, it can be NULL when there are no available DataFetchers. BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149614

Patch Set 1 #

Total comments: 10

Patch Set 2 : Passes factory by value #

Total comments: 1

Patch Set 3 : Fixes comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -29 lines) Patch
M content/browser/device_orientation/provider.cc View 1 1 chunk +5 lines, -6 lines 0 comments Download
M content/browser/device_orientation/provider_impl.h View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/device_orientation/provider_impl.cc View 1 4 chunks +7 lines, -10 lines 0 comments Download
M content/browser/device_orientation/provider_unittest.cc View 1 1 chunk +2 lines, -9 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
aousterh
8 years, 4 months ago (2012-08-01 18:44:49 UTC) #1
hans
Thanks! This makes things simpler. I think we should be able to pass around the ...
8 years, 4 months ago (2012-08-01 19:08:46 UTC) #2
aousterh
Thanks for the comments! I switched it to pass the DataFetcherFactory by value instead of ...
8 years, 4 months ago (2012-08-02 10:10:37 UTC) #3
hans
On 2012/08/02 10:10:37, aousterh wrote: > Thanks for the comments! I switched it to pass ...
8 years, 4 months ago (2012-08-02 10:19:07 UTC) #4
hans
Oh, and maybe we should update the CL description a little, it still says "pointer ...
8 years, 4 months ago (2012-08-02 10:19:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aousterh@chromium.org/10837055/11
8 years, 4 months ago (2012-08-02 10:28:06 UTC) #6
commit-bot: I haz the power
8 years, 4 months ago (2012-08-02 11:56:24 UTC) #7
Change committed as 149614

Powered by Google App Engine
This is Rietveld 408576698