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

Side by Side Diff: content/renderer/renderer_glue.cc

Issue 8002003: Revert "Remove webkit_glue::BuildUserAgent(), change the contract in webkit_glue" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
« no previous file with comments | « content/common/content_client.cc ('k') | content/shell/shell_content_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This file provides the embedder's side of random webkit glue functions. 5 // This file provides the embedder's side of random webkit glue functions.
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 #endif 240 #endif
241 241
242 string16 GetLocalizedString(int message_id) { 242 string16 GetLocalizedString(int message_id) {
243 return content::GetContentClient()->GetLocalizedString(message_id); 243 return content::GetContentClient()->GetLocalizedString(message_id);
244 } 244 }
245 245
246 base::StringPiece GetDataResource(int resource_id) { 246 base::StringPiece GetDataResource(int resource_id) {
247 return content::GetContentClient()->GetDataResource(resource_id); 247 return content::GetContentClient()->GetDataResource(resource_id);
248 } 248 }
249 249
250 std::string BuildUserAgent(bool mimic_windows) {
251 return content::GetContentClient()->GetUserAgent(mimic_windows);
252 }
253
250 } // namespace webkit_glue 254 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « content/common/content_client.cc ('k') | content/shell/shell_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698