OLD | NEW |
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> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/google/google_util.h" | 15 #include "chrome/browser/google/google_util.h" |
16 #include "chrome/common/pref_names.h" | |
17 #include "chrome/common/jstemplate_builder.h" | 16 #include "chrome/common/jstemplate_builder.h" |
18 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
19 #include "grit/app_resources.h" | 18 #include "grit/app_resources.h" |
20 #include "grit/browser_resources.h" | 19 #include "grit/browser_resources.h" |
21 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
22 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
23 | 22 |
24 // Define the values of standard URLs. | 23 // Define the values of standard URLs. |
25 const char RemotingResourcesSource::kInvalidPasswordHelpUrl[] = | 24 const char RemotingResourcesSource::kInvalidPasswordHelpUrl[] = |
26 "http://www.google.com/support/accounts/bin/answer.py?ctx=ch&answer=27444"; | 25 "http://www.google.com/support/accounts/bin/answer.py?ctx=ch&answer=27444"; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 return "text/html"; | 141 return "text/html"; |
143 } | 142 } |
144 | 143 |
145 std::string RemotingResourcesSource::GetLocalizedUrl( | 144 std::string RemotingResourcesSource::GetLocalizedUrl( |
146 const std::string& url) const { | 145 const std::string& url) const { |
147 GURL original_url(url); | 146 GURL original_url(url); |
148 DCHECK(original_url.is_valid()); | 147 DCHECK(original_url.is_valid()); |
149 GURL localized_url = google_util::AppendGoogleLocaleParam(original_url); | 148 GURL localized_url = google_util::AppendGoogleLocaleParam(original_url); |
150 return localized_url.spec(); | 149 return localized_url.spec(); |
151 } | 150 } |
OLD | NEW |