OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/memory/ref_counted_memory.h" |
7 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
8 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
9 #include "base/values.h" | 10 #include "base/values.h" |
10 #include "chrome/browser/google/google_util.h" | 11 #include "chrome/browser/google/google_util.h" |
11 #include "chrome/common/jstemplate_builder.h" | 12 #include "chrome/common/jstemplate_builder.h" |
12 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
13 #include "grit/browser_resources.h" | 14 #include "grit/browser_resources.h" |
14 #include "grit/chromium_strings.h" | 15 #include "grit/chromium_strings.h" |
15 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
16 #include "grit/locale_settings.h" | 17 #include "grit/locale_settings.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 return "text/html"; | 128 return "text/html"; |
128 } | 129 } |
129 | 130 |
130 std::string CloudPrintSetupSource::GetLocalizedUrl( | 131 std::string CloudPrintSetupSource::GetLocalizedUrl( |
131 const std::string& url) const { | 132 const std::string& url) const { |
132 GURL original_url(url); | 133 GURL original_url(url); |
133 DCHECK(original_url.is_valid()); | 134 DCHECK(original_url.is_valid()); |
134 GURL localized_url = google_util::AppendGoogleLocaleParam(original_url); | 135 GURL localized_url = google_util::AppendGoogleLocaleParam(original_url); |
135 return localized_url.spec(); | 136 return localized_url.spec(); |
136 } | 137 } |
OLD | NEW |