Chromium Code Reviews
DescriptionAbstract 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
Patch Set 1 #Patch Set 2 : Update comments #
Total comments: 21
Patch Set 3 : Response to review #Patch Set 4 : Rebase #Patch Set 5 : Build fix and rebase #Messages
Total messages: 18 (0 generated)
|