Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: chrome/browser/autocomplete/keyword_provider.cc

Issue 18263: Move search engines files into subdir (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/autocomplete/keyword_provider.h" 5 #include "chrome/browser/autocomplete/keyword_provider.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profile.h"
11 #include "chrome/browser/template_url.h" 11 #include "chrome/browser/search_engines/template_url.h"
12 #include "chrome/browser/template_url_model.h" 12 #include "chrome/browser/search_engines/template_url_model.h"
13 #include "chrome/common/l10n_util.h" 13 #include "chrome/common/l10n_util.h"
14 #include "net/base/escape.h" 14 #include "net/base/escape.h"
15 #include "net/base/net_util.h" 15 #include "net/base/net_util.h"
16 16
17 #include "generated_resources.h" 17 #include "generated_resources.h"
18 18
19 // static 19 // static
20 std::wstring KeywordProvider::SplitReplacementStringFromInput( 20 std::wstring KeywordProvider::SplitReplacementStringFromInput(
21 const std::wstring& input) { 21 const std::wstring& input) {
22 // The input may contain leading whitespace, strip it. 22 // The input may contain leading whitespace, strip it.
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 result.description.length(), 271 result.description.length(),
272 ACMatchClassification::DIM, 272 ACMatchClassification::DIM,
273 &result.description_class); 273 &result.description_class);
274 274
275 // Keyword searches don't look like URLs. 275 // Keyword searches don't look like URLs.
276 result.transition = PageTransition::GENERATED; 276 result.transition = PageTransition::GENERATED;
277 277
278 return result; 278 return result;
279 } 279 }
280 280
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup.cc ('k') | chrome/browser/autocomplete/keyword_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698