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

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

Issue 18305: Move url_* to net 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
« no previous file with comments | « chrome/browser/autocomplete/search_provider.h ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/search_provider.h" 5 #include "chrome/browser/autocomplete/search_provider.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/google_util.h" 10 #include "chrome/browser/google_util.h"
11 #include "chrome/browser/net/url_fixer_upper.h"
11 #include "chrome/browser/profile.h" 12 #include "chrome/browser/profile.h"
12 #include "chrome/browser/search_engines/template_url_model.h" 13 #include "chrome/browser/search_engines/template_url_model.h"
13 #include "chrome/browser/url_fixer_upper.h"
14 #include "chrome/common/json_value_serializer.h" 14 #include "chrome/common/json_value_serializer.h"
15 #include "chrome/common/l10n_util.h" 15 #include "chrome/common/l10n_util.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "chrome/common/pref_service.h" 17 #include "chrome/common/pref_service.h"
18 #include "googleurl/src/url_util.h" 18 #include "googleurl/src/url_util.h"
19 #include "net/base/escape.h" 19 #include "net/base/escape.h"
20 20
21 #include "generated_resources.h" 21 #include "generated_resources.h"
22 22
23 using base::Time; 23 using base::Time;
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 const size_t after_slashes = std::min(url->length(), 611 const size_t after_slashes = std::min(url->length(),
612 static_cast<size_t>(scheme.end() + 3)); 612 static_cast<size_t>(scheme.end() + 3));
613 while ((prefix_len < after_slashes) && ((*url)[prefix_len] == L'/')) 613 while ((prefix_len < after_slashes) && ((*url)[prefix_len] == L'/'))
614 ++prefix_len; 614 ++prefix_len;
615 if (prefix_len == url->length()) 615 if (prefix_len == url->length())
616 url->clear(); 616 url->clear();
617 else 617 else
618 url->erase(url->begin(), url->begin() + prefix_len); 618 url->erase(url->begin(), url->begin() + prefix_len);
619 return prefix_len; 619 return prefix_len;
620 } 620 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/search_provider.h ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698