~chromium-team/chromium-browser/horizon

« back to all changes in this revision

Viewing changes to debian/patches/search-credit.patch

  • Committer: Chad MILLER
  • Date: 2017-02-06 16:22:08 UTC
  • Revision ID: chad.miller@canonical.com-20170206162208-v26o2zdwxy2t1hoh
Upstream beta: 57.0.2987.21.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
       "id": 21
14
14
--- a/components/search_engines/template_url.cc
15
15
+++ b/components/search_engines/template_url.cc
16
 
@@ -890,6 +890,9 @@ std::string TemplateURLRef::HandleReplac
 
16
@@ -887,6 +887,9 @@ std::string TemplateURLRef::HandleReplac
17
17
 
18
18
   std::string url = parsed_url_;
19
19
 
23
23
   // replacements_ is ordered in ascending order, as such we need to iterate
24
24
   // from the back.
25
25
   for (Replacements::reverse_iterator i = replacements_.rbegin();
26
 
@@ -919,6 +922,7 @@ std::string TemplateURLRef::HandleReplac
 
26
@@ -916,6 +919,7 @@ std::string TemplateURLRef::HandleReplac
27
27
 
28
28
       case GOOGLE_BASE_URL:
29
29
         DCHECK(!i->is_post_param);
31
31
         HandleReplacement(
32
32
             std::string(), search_terms_data.GoogleBaseURLValue(), *i, &url);
33
33
         break;
34
 
@@ -1059,7 +1063,8 @@ std::string TemplateURLRef::HandleReplac
 
34
@@ -1046,7 +1050,8 @@ std::string TemplateURLRef::HandleReplac
35
35
 
36
36
       case GOOGLE_SEARCH_CLIENT: {
37
37
         DCHECK(!i->is_post_param);
41
41
         if (!client.empty())
42
42
           HandleReplacement("client", client, *i, &url);
43
43
         break;
44
 
@@ -1163,6 +1168,13 @@ std::string TemplateURLRef::HandleReplac
 
44
@@ -1150,6 +1155,13 @@ std::string TemplateURLRef::HandleReplac
45
45
     }
46
46
   }
47
47