diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-27 21:46:47 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-27 21:46:47 +0000 |
commit | c02f79da5f0b86bdef6a4104021e77ed77acc1b5 (patch) | |
tree | 5858e84156517679a3d0ac8e4c19a9f618bdd2b7 /chrome/browser/google/google_search_counter.cc | |
parent | 08f3fd3c85cc5f23eea35385bc70ac45b50fa718 (diff) | |
download | chromium_src-c02f79da5f0b86bdef6a4104021e77ed77acc1b5.zip chromium_src-c02f79da5f0b86bdef6a4104021e77ed77acc1b5.tar.gz chromium_src-c02f79da5f0b86bdef6a4104021e77ed77acc1b5.tar.bz2 |
Change various google_util functions from taking a std::string to a GURL.
BUG=249197
TEST=none
TBR=jered,sky
Review URL: https://codereview.chromium.org/18110003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google/google_search_counter.cc')
-rw-r--r-- | chrome/browser/google/google_search_counter.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/google/google_search_counter.cc b/chrome/browser/google/google_search_counter.cc index e15da72..ecf670c8 100644 --- a/chrome/browser/google/google_search_counter.cc +++ b/chrome/browser/google/google_search_counter.cc @@ -20,7 +20,7 @@ namespace { bool IsOmniboxGoogleSearchNavigation(const content::NavigationEntry& entry) { const content::PageTransition stripped_transition = PageTransitionStripQualifier(entry.GetTransitionType()); - DCHECK(google_util::IsGoogleSearchUrl(entry.GetURL().spec())); + DCHECK(google_util::IsGoogleSearchUrl(entry.GetURL())); return stripped_transition == content::PAGE_TRANSITION_GENERATED; } @@ -28,7 +28,7 @@ bool IsOmniboxGoogleSearchNavigation(const content::NavigationEntry& entry) { // App. This method assumes that we have already verified that |entry|'s URL is // a Google search URL. bool IsSearchAppGoogleSearchNavigation(const content::NavigationEntry& entry) { - DCHECK(google_util::IsGoogleSearchUrl(entry.GetURL().spec())); + DCHECK(google_util::IsGoogleSearchUrl(entry.GetURL())); return entry.GetURL().query().find("source=search_app") != std::string::npos; } @@ -60,7 +60,7 @@ void GoogleSearchCounter::ProcessCommittedEntry( const content::NavigationEntry& entry = *commit->entry; // First see if this is a Google search URL at all. - if (!google_util::IsGoogleSearchUrl(entry.GetURL().spec())) + if (!google_util::IsGoogleSearchUrl(entry.GetURL())) return; // If the commit is a GENERATED commit with a Google search URL, we know it's |