|
Abstract GoogleURLTracker & google_util Profile dependencies
This CL eliminates GoogleURLTracker and google_util having static functions
that take in Profiles as arguments and use the Profile to get at the
GoogleURLTracker instance. Specifically, it does the following:
- Introduces google_profile_helper, as well as a new
GetGoogleHomePageURL(Profile) function that serves the purpose previously
being served by GoogleURLTracker::GoogleURL(Profile).
- The google_util GetGoogleCountryCode(Profile) and GetGoogleSearchURL(Profile)
functions now take in the Google homepage URL to operate on rather than the
Profile.
- Turns GoogleURLTracker's static RequestServerCheck(Profile) and
GoogleURLSearchCommitted(Profile) into instance methods, changing callsites
to get the tracker from the factory and call the instance method on the
tracker if it is not NULL.
GoogleURLTracker still uses the Profile to get the Prefs; this will be changed
in a different CL.
BUG= 373235, 373223
TBR=thakis
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274679
Total comments: 21
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+137 lines, -87 lines) |
Patch |
 |
M |
chrome/browser/android/logo_service.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/android/tab_android.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/errorpage_browsertest.cc
|
View
|
1
2
3
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/google/google_profile_helper.h
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/google/google_profile_helper.cc
|
View
|
1
2
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/google/google_url_tracker.h
|
View
|
1
2
3
4
|
5 chunks |
+14 lines, -29 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/google/google_url_tracker.cc
|
View
|
1
2
3
4
|
2 chunks |
+14 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/google/google_util.h
|
View
|
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/google/google_util.cc
|
View
|
1
2
3
|
2 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profile_resetter/profile_resetter.cc
|
View
|
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/search_terms_data.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/template_url_service.cc
|
View
|
|
2 chunks |
+12 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/navigation_correction_tab_observer.cc
|
View
|
1
2
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
View
|
1
2
3
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|