|
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
Committed: https://crrev.com/d967d55cf7a0f78e6ace9ec681d2d082e631810b
Cr-Commit-Position: refs/heads/master@{#339002}
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1155 lines, -2457 lines) |
Patch |
|
M |
build/common.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
|
M |
build/config/features.gni
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+15 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/DEPS
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browser_shutdown.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chrome_browser_main.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/chrome_browser_main_chromeos.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/login/login_utils_browsertest.cc
|
View
|
1
2
3
|
4 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/login/session/user_session_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
|
A |
chrome/browser/rlz/chrome_rlz_tracker_delegate.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/rlz/chrome_rlz_tracker_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+236 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/rlz/chrome_rlz_tracker_delegate_unittest.cc
|
View
|
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
|
D |
chrome/browser/rlz/rlz.h
|
View
|
|
1 chunk |
+0 lines, -246 lines |
0 comments
|
Download
|
|
D |
chrome/browser/rlz/rlz.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -670 lines |
0 comments
|
Download
|
|
D |
chrome/browser/rlz/rlz_chromeos.cc
|
View
|
|
1 chunk |
+0 lines, -20 lines |
0 comments
|
Download
|
|
D |
chrome/browser/rlz/rlz_ios.mm
|
View
|
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
|
D |
chrome/browser/rlz/rlz_mac.cc
|
View
|
|
1 chunk |
+0 lines, -20 lines |
0 comments
|
Download
|
|
D |
chrome/browser/rlz/rlz_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -925 lines |
0 comments
|
Download
|
|
D |
chrome/browser/rlz/rlz_win.cc
|
View
|
|
1 chunk |
+0 lines, -20 lines |
0 comments
|
Download
|
|
M |
chrome/browser/search_engines/template_url_service_factory.cc
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/search_engines/ui_thread_search_terms_data.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/app_list/app_list_controller_delegate.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/browser_commands.cc
|
View
|
1
2
3
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/startup/startup_browser_creator_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+22 lines, -8 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/test/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
components/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/components.gyp
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/components_tests.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+20 lines, -0 lines |
0 comments
|
Download
|
|
A |
components/rlz.gypi
|
View
|
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
A |
components/rlz/BUILD.gn
|
View
|
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
|
A |
components/rlz/DEPS
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
A + |
components/rlz/OWNERS
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
A + |
components/rlz/rlz_tracker.h
|
View
|
1
2
3
|
8 chunks |
+35 lines, -39 lines |
0 comments
|
Download
|
|
A + |
components/rlz/rlz_tracker.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
19 chunks |
+121 lines, -226 lines |
0 comments
|
Download
|
|
A + |
components/rlz/rlz_tracker_chromeos.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
A |
components/rlz/rlz_tracker_delegate.h
|
View
|
1
2
3
|
1 chunk |
+86 lines, -0 lines |
0 comments
|
Download
|
|
A + |
components/rlz/rlz_tracker_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
A |
components/rlz/rlz_tracker_ios.cc
|
View
|
1
2
3
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
A + |
components/rlz/rlz_tracker_mac.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
A + |
components/rlz/rlz_tracker_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
34 chunks |
+290 lines, -206 lines |
0 comments
|
Download
|
|
A + |
components/rlz/rlz_tracker_win.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
rlz/test/rlz_test_helpers.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 49 (18 generated)
|