diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-25 01:27:31 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-25 01:27:31 +0000 |
commit | 04999e660bef3b6df5518acea9749878af736b8e (patch) | |
tree | 9dcc816280dfd032b39a40813bfdb6a7fdca7793 /chrome/browser/search_engines/template_url.cc | |
parent | 26f34dd42f1af46a4c68e9082290c359706685db (diff) | |
download | chromium_src-04999e660bef3b6df5518acea9749878af736b8e.zip chromium_src-04999e660bef3b6df5518acea9749878af736b8e.tar.gz chromium_src-04999e660bef3b6df5518acea9749878af736b8e.tar.bz2 |
linux: drop temp_scaffolding_stubs
It was mostly unneeded, but I had to excise the last bits of RLZ and move
some NOTIMPLEMENTED bits to where they belong.
Review URL: http://codereview.chromium.org/219042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/search_engines/template_url.cc')
-rw-r--r-- | chrome/browser/search_engines/template_url.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/browser/search_engines/template_url.cc b/chrome/browser/search_engines/template_url.cc index 2084780..b550a8d 100644 --- a/chrome/browser/search_engines/template_url.cc +++ b/chrome/browser/search_engines/template_url.cc @@ -9,11 +9,14 @@ #include "base/logging.h" #include "base/string_util.h" #include "chrome/browser/browser_process.h" -#include "chrome/browser/rlz/rlz.h" #include "chrome/browser/google_url_tracker.h" #include "chrome/browser/search_engines/template_url_model.h" #include "net/base/escape.h" +#if defined(OS_WIN) +#include "chrome/browser/rlz/rlz.h" +#endif + // The TemplateURLRef has any number of terms that need to be replaced. Each of // the terms is enclosed in braces. If the character preceeding the final // brace is a ?, it indicates the term is optional and can be replaced with @@ -298,6 +301,11 @@ std::wstring TemplateURLRef::ReplaceSearchTerms( break; case GOOGLE_RLZ: { + // On platforms that don't have RLZ, we still want this branch + // to happen so that we replace the RLZ template with the + // empty string. (If we don't handle this case, we hit a + // NOTREACHED below.) +#if defined(OS_WIN) std::wstring rlz_string; RLZTracker::GetAccessPointRlz(RLZTracker::CHROME_OMNIBOX, &rlz_string); if (!rlz_string.empty()) { @@ -305,6 +313,7 @@ std::wstring TemplateURLRef::ReplaceSearchTerms( url.insert(i->index, rlz_string); } break; +#endif } case GOOGLE_UNESCAPED_SEARCH_TERMS: { |