0

457 Commits

Author SHA1 Message Date
msw
456d842422 Revert of Delete base/prefs and update callers to use components. (patchset id:40001 of https://codereview.chromium.org/1662523004/ )
Reason for revert:
Broke Win Builder compile:
https://build.chromium.org/p/chromium.win/builders/Win%20Builder/builds/19463/steps/compile/logs/stdio

Original issue's description:
> Delete base/prefs and update callers to use components.
>
> Deletes the forwarding headers in base/prefs.
>
> Updates the remaining users of base/prefs includes to use components/prefs.
> Sort headers in updated files.
>
> Move PrefServiceFactory out of the base namespace. Update users.
>
> Update all preprocessor stuff in components/prefs to change BASE_PREFS_ to
> COMPONENTS_PREFS_.
>
> Add components/prefs to DEPS file of directories where checkdeps fails after
> the update.
>
> BUG=583034
>
> Committed: https://crrev.com/1f5feb7e317e3c257090858e950273b64a2e31ef
> Cr-Commit-Position: refs/heads/master@{#373105}

TBR=estade@chromium.org,brettw@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=583034

Review URL: https://codereview.chromium.org/1662843002

Cr-Commit-Position: refs/heads/master@{#373115}
2016-02-03 01:26:34 +00:00
1f5feb7e31 Delete base/prefs and update callers to use components.
Deletes the forwarding headers in base/prefs.

Updates the remaining users of base/prefs includes to use components/prefs.
Sort headers in updated files.

Move PrefServiceFactory out of the base namespace. Update users.

Update all preprocessor stuff in components/prefs to change BASE_PREFS_ to
COMPONENTS_PREFS_.

Add components/prefs to DEPS file of directories where checkdeps fails after
the update.

BUG=583034

Review URL: https://codereview.chromium.org/1662523004

Cr-Commit-Position: refs/heads/master@{#373105}
2016-02-03 00:52:49 +00:00
f00b9b402a Update components for new prefs location.
This is a search-and-replace update for includes with "base/prefs" ->
"components/prefs" and the headers re-sorted.

DEPS files were updated to allow the components in question to depend on
components/prefs.

This should be a no-op from a build perspective.

BUG=583034

Review URL: https://codereview.chromium.org/1651203002

Cr-Commit-Position: refs/heads/master@{#372780}
2016-02-01 22:12:35 +00:00
9f7802a28d Update GN build files for new prefs location.
Updates references from //base:prefs to //components/prefs/

TBR=jam@chromium.org

Review URL: https://codereview.chromium.org/1652573002

Cr-Commit-Position: refs/heads/master@{#372540}
2016-01-30 06:41:12 +00:00
58cd1f1293 Move base/prefs to components/prefs
This change is the minimal move change. It does not update namespaces or includes. Forwarding headers and targets exist to map to the new location. The namespaces, include guards, and references to these files will be updated in follow-ups.

The GYP build has been updated to point to the new location because the forwarding headers generated a .gyp file cycle. Avoiding a cycle with libaddressinput is why prefs is a separate .gyp from most of the rest of the components. The GN build uses forwarding targets to keep the change smaller.

The json pref store unit tests had to be updated because of the way that they used histograms conflicted with the hsitogram setup of the components unittests. Fortunately, there's a HistogramTester helper for this case, so this patch uses it in for the moved test in place of manually checking histogram counts.

json_pref_store_unittests.cc also depended on the files il base/test/data/prefs. Rather than worry about updating all the isolates and such, this just adds the data inline and avoids having separate test files.

Reland of http://crrev.com/1648403002 with iOS fix
TBR=jam@chromium.org

Review URL: https://codereview.chromium.org/1653693002

Cr-Commit-Position: refs/heads/master@{#372536}
2016-01-30 05:57:05 +00:00
b48cea969c Revert of Move base/prefs to components/prefs (patchset id:120001 of https://codereview.chromium.org/1648403002/ )
Reason for revert:
Reverting due to failure on iOS builder:
https://build.chromium.org/p/chromium.mac/builders/iOS_Device_%28ninja%29/builds/38425/steps/steps/logs/stdio

Original issue's description:
> Move base/prefs to components/prefs
>
> This change is the minimal move change. It does not update namespaces or includes. Forwarding headers and targets exist to map to the new location. The namespaces, include guards, and references to these files will be updated in follow-ups.
>
> The GYP build has been updated to point to the new location because the forwarding headers generated a .gyp file cycle. Avoiding a cycle with libaddressinput is why prefs is a separate .gyp from most of the rest of the components. The GN build uses forwarding targets to keep the change smaller.
>
> The json pref store unit tests had to be updated because of the way that they used histograms conflicted with the hsitogram setup of the components unittests. Fortunately, there's a HistogramTester helper for this case, so this patch uses it in for the moved test in place of manually checking histogram counts.
>
> json_pref_store_unittests.cc also depended on the files il base/test/data/prefs. Rather than worry about updating all the isolates and such, this just adds the data inline and avoids having separate test files.
>
> BUG=
>
> Committed: https://crrev.com/deb824cd36c02a93854537d70e1853cb9f1c55b9
> Cr-Commit-Position: refs/heads/master@{#372494}

TBR=jam@chromium.org,brettw@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=

Review URL: https://codereview.chromium.org/1645073005

Cr-Commit-Position: refs/heads/master@{#372499}
2016-01-30 00:59:29 +00:00
deb824cd36 Move base/prefs to components/prefs
This change is the minimal move change. It does not update namespaces or includes. Forwarding headers and targets exist to map to the new location. The namespaces, include guards, and references to these files will be updated in follow-ups.

The GYP build has been updated to point to the new location because the forwarding headers generated a .gyp file cycle. Avoiding a cycle with libaddressinput is why prefs is a separate .gyp from most of the rest of the components. The GN build uses forwarding targets to keep the change smaller.

The json pref store unit tests had to be updated because of the way that they used histograms conflicted with the hsitogram setup of the components unittests. Fortunately, there's a HistogramTester helper for this case, so this patch uses it in for the moved test in place of manually checking histogram counts.

json_pref_store_unittests.cc also depended on the files il base/test/data/prefs. Rather than worry about updating all the isolates and such, this just adds the data inline and avoids having separate test files.

BUG=

Review URL: https://codereview.chromium.org/1648403002

Cr-Commit-Position: refs/heads/master@{#372494}
2016-01-30 00:39:01 +00:00