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

Side by Side Diff: chrome/browser/remoting/remoting_resources_source.cc

Issue 5676004: Cleanup: Remove unneeded browser_thread.h usage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/remoting/remoting_resources_source.h" 5 #include "chrome/browser/remoting/remoting_resources_source.h"
6 6
7 #include <algorithm>
8 #include <string>
9
7 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 11 #include "app/resource_bundle.h"
9 #include "base/message_loop.h" 12 #include "base/message_loop.h"
10 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
11 #include "base/values.h" 14 #include "base/values.h"
12 #include "chrome/browser/browser_thread.h"
13 #include "chrome/browser/google/google_util.h" 15 #include "chrome/browser/google/google_util.h"
14 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
15 #include "chrome/common/jstemplate_builder.h" 17 #include "chrome/common/jstemplate_builder.h"
16 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
17 #include "grit/app_resources.h" 19 #include "grit/app_resources.h"
18 #include "grit/browser_resources.h" 20 #include "grit/browser_resources.h"
19 #include "grit/chromium_strings.h" 21 #include "grit/chromium_strings.h"
20 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
21 23
22 // Define the values of standard URLs. 24 // Define the values of standard URLs.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 SendResponse(request_id, html_bytes); 113 SendResponse(request_id, html_bytes);
112 } 114 }
113 115
114 std::string RemotingResourcesSource::GetLocalizedUrl( 116 std::string RemotingResourcesSource::GetLocalizedUrl(
115 const std::string& url) const { 117 const std::string& url) const {
116 GURL original_url(url); 118 GURL original_url(url);
117 DCHECK(original_url.is_valid()); 119 DCHECK(original_url.is_valid());
118 GURL localized_url = google_util::AppendGoogleLocaleParam(original_url); 120 GURL localized_url = google_util::AppendGoogleLocaleParam(original_url);
119 return localized_url.spec(); 121 return localized_url.spec();
120 } 122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698