summaryrefslogtreecommitdiffstats
path: root/components/components.gyp
diff options
context:
space:
mode:
authorsdefresne <sdefresne@chromium.org>2015-07-09 07:56:19 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-09 14:56:44 +0000
commit311a46585ee5b77486ef42d947bc7cc7566558b1 (patch)
treed15f84966fbd2c4ade8527e74f99817974cc1979 /components/components.gyp
parentec894a5d76eadbe3cb489faed6469ff78e00aec8 (diff)
downloadchromium_src-311a46585ee5b77486ef42d947bc7cc7566558b1.zip
chromium_src-311a46585ee5b77486ef42d947bc7cc7566558b1.tar.gz
chromium_src-311a46585ee5b77486ef42d947bc7cc7566558b1.tar.bz2
Componentize chrome/browser/rlz
Add new class RLZTrackerDelegate that abstract access to embedder specific singletons and informations and provide an implementation for Chrome based on the previous implementation. Split rlz_unittest.cc in tests of the RLZTracker and Chrome implementation of the RLZTrackerDelegate interface and move the RLZTracker tests into the component. Add a new gyp/gn variable "enable_rlz_support". This variable is true on the platforms that support RLZ (currently Windows, Mac, iOS and ChromeOS). Use it to build library and unit tests even when the RLZ support is not enabled in the Chrome binary (this is still controlled by "enable_rlz" and depends on the branding). Enable the tests on iOS and convert rlz_tracker_ios.mm to a C++ file. TEST=Run unit_tests and components_unittests on a platform that supports RLZ (Windows, Mac, iOS or ChromeOS) and check that they pass. Then build Chrome with "enable_rlz" and manually checks that RLZ are sent with searches as expected. BUG=504841,508148 Review URL: https://codereview.chromium.org/1212163011 Cr-Commit-Position: refs/heads/master@{#338040}
Diffstat (limited to 'components/components.gyp')
-rw-r--r--components/components.gyp5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/components.gyp b/components/components.gyp
index 7b5a01c..52bd3e1 100644
--- a/components/components.gyp
+++ b/components/components.gyp
@@ -164,5 +164,10 @@
'chrome_apps.gypi',
],
}],
+ ['enable_rlz_support==1', {
+ 'includes': [
+ 'rlz.gypi',
+ ],
+ }]
],
}