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

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

Issue 109043: Move l10n_util to app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/search_provider.h" 5 #include "chrome/browser/autocomplete/search_provider.h"
6 6
7 #include "app/l10n_util.h"
7 #include "base/message_loop.h" 8 #include "base/message_loop.h"
8 #include "base/string_util.h" 9 #include "base/string_util.h"
9 #include "chrome/browser/autocomplete/keyword_provider.h" 10 #include "chrome/browser/autocomplete/keyword_provider.h"
10 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/google_util.h" 12 #include "chrome/browser/google_util.h"
12 #include "chrome/browser/net/url_fixer_upper.h" 13 #include "chrome/browser/net/url_fixer_upper.h"
13 #include "chrome/browser/profile.h" 14 #include "chrome/browser/profile.h"
14 #include "chrome/browser/search_engines/template_url_model.h" 15 #include "chrome/browser/search_engines/template_url_model.h"
15 #include "chrome/common/json_value_serializer.h" 16 #include "chrome/common/json_value_serializer.h"
16 #include "chrome/common/l10n_util.h"
17 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "chrome/common/pref_service.h" 18 #include "chrome/common/pref_service.h"
19 #include "chrome/common/url_constants.h" 19 #include "chrome/common/url_constants.h"
20 #include "googleurl/src/url_util.h" 20 #include "googleurl/src/url_util.h"
21 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
22 #include "net/base/escape.h" 22 #include "net/base/escape.h"
23 #include "net/http/http_response_headers.h" 23 #include "net/http/http_response_headers.h"
24 #include "net/url_request/url_request_status.h" 24 #include "net/url_request/url_request_status.h"
25 25
26 using base::Time; 26 using base::Time;
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 const size_t after_slashes = std::min(url->length(), 786 const size_t after_slashes = std::min(url->length(),
787 static_cast<size_t>(scheme.end() + 3)); 787 static_cast<size_t>(scheme.end() + 3));
788 while ((prefix_len < after_slashes) && ((*url)[prefix_len] == L'/')) 788 while ((prefix_len < after_slashes) && ((*url)[prefix_len] == L'/'))
789 ++prefix_len; 789 ++prefix_len;
790 if (prefix_len == url->length()) 790 if (prefix_len == url->length())
791 url->clear(); 791 url->clear();
792 else 792 else
793 url->erase(url->begin(), url->begin() + prefix_len); 793 url->erase(url->begin(), url->begin() + prefix_len);
794 return prefix_len; 794 return prefix_len;
795 } 795 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | chrome/browser/back_forward_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698