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

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

Issue 7922023: Remove webkit_glue::BuildUserAgent(), remove windows spoofing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix GetUserAgent() to return whether the user agent is overriding, clean up 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
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
254 } // namespace webkit_glue 250 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698