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

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

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
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> 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"
12 #include "base/message_loop.h" 11 #include "base/message_loop.h"
13 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
14 #include "base/values.h" 13 #include "base/values.h"
15 #include "chrome/browser/google/google_util.h" 14 #include "chrome/browser/google/google_util.h"
16 #include "chrome/common/jstemplate_builder.h" 15 #include "chrome/common/jstemplate_builder.h"
17 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
18 #include "grit/app_resources.h" 17 #include "grit/app_resources.h"
19 #include "grit/browser_resources.h" 18 #include "grit/browser_resources.h"
20 #include "grit/chromium_strings.h" 19 #include "grit/chromium_strings.h"
21 #include "grit/generated_resources.h" 20 #include "grit/generated_resources.h"
22 #include "grit/locale_settings.h" 21 #include "grit/locale_settings.h"
22 #include "ui/base/resource/resource_bundle.h"
23 23
24 // Define the values of standard URLs. 24 // Define the values of standard URLs.
25 const char RemotingResourcesSource::kInvalidPasswordHelpUrl[] = 25 const char RemotingResourcesSource::kInvalidPasswordHelpUrl[] =
26 "http://www.google.com/support/accounts/bin/answer.py?ctx=ch&answer=27444"; 26 "http://www.google.com/support/accounts/bin/answer.py?ctx=ch&answer=27444";
27 const char RemotingResourcesSource::kCanNotAccessAccountUrl[] = 27 const char RemotingResourcesSource::kCanNotAccessAccountUrl[] =
28 "http://www.google.com/support/accounts/bin/answer.py?answer=48598"; 28 "http://www.google.com/support/accounts/bin/answer.py?answer=48598";
29 const char RemotingResourcesSource::kCreateNewAccountUrl[] = 29 const char RemotingResourcesSource::kCreateNewAccountUrl[] =
30 "https://www.google.com/accounts/NewAccount?service=chromiumsync"; 30 "https://www.google.com/accounts/NewAccount?service=chromiumsync";
31 31
32 RemotingResourcesSource::RemotingResourcesSource() 32 RemotingResourcesSource::RemotingResourcesSource()
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 return "text/html"; 151 return "text/html";
152 } 152 }
153 153
154 std::string RemotingResourcesSource::GetLocalizedUrl( 154 std::string RemotingResourcesSource::GetLocalizedUrl(
155 const std::string& url) const { 155 const std::string& url) const {
156 GURL original_url(url); 156 GURL original_url(url);
157 DCHECK(original_url.is_valid()); 157 DCHECK(original_url.is_valid());
158 GURL localized_url = google_util::AppendGoogleLocaleParam(original_url); 158 GURL localized_url = google_util::AppendGoogleLocaleParam(original_url);
159 return localized_url.spec(); 159 return localized_url.spec();
160 } 160 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698