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/printing/cloud_print/cloud_print_setup_source.h" | 5 #include "chrome/browser/printing/cloud_print/cloud_print_setup_source.h" |
6 | 6 |
| 7 #include <algorithm> |
| 8 |
7 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
9 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
10 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
11 #include "base/values.h" | 13 #include "base/values.h" |
12 #include "chrome/browser/browser_thread.h" | |
13 #include "chrome/browser/google/google_util.h" | 14 #include "chrome/browser/google/google_util.h" |
14 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
15 #include "chrome/common/jstemplate_builder.h" | 16 #include "chrome/common/jstemplate_builder.h" |
16 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
17 #include "grit/app_resources.h" | 18 #include "grit/app_resources.h" |
18 #include "grit/browser_resources.h" | 19 #include "grit/browser_resources.h" |
19 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
20 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
21 #include "grit/locale_settings.h" | 22 #include "grit/locale_settings.h" |
22 | 23 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 SendResponse(request_id, html_bytes); | 126 SendResponse(request_id, html_bytes); |
126 } | 127 } |
127 | 128 |
128 std::string CloudPrintSetupSource::GetLocalizedUrl( | 129 std::string CloudPrintSetupSource::GetLocalizedUrl( |
129 const std::string& url) const { | 130 const std::string& url) const { |
130 GURL original_url(url); | 131 GURL original_url(url); |
131 DCHECK(original_url.is_valid()); | 132 DCHECK(original_url.is_valid()); |
132 GURL localized_url = google_util::AppendGoogleLocaleParam(original_url); | 133 GURL localized_url = google_util::AppendGoogleLocaleParam(original_url); |
133 return localized_url.spec(); | 134 return localized_url.spec(); |
134 } | 135 } |
OLD | NEW |