summaryrefslogtreecommitdiffstats
path: root/chrome_frame/renderer_glue.cc
blob: d9045061e6cd34d34b33838bed20e7186ea2a430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "webkit/glue/user_agent.h"
#include "webkit/glue/webkit_glue.h"

#include "chrome/common/chrome_version_info.h"

class GURL;

bool IsPluginProcess() {
  return false;
}

namespace webkit_glue {

std::string BuildUserAgent(bool mimic_windows) {
  chrome::VersionInfo version_info;
  std::string product("Chrome/");
  product += version_info.is_valid() ? version_info.Version()
                                     : "0.0.0.0";
  return webkit_glue::BuildUserAgentHelper(mimic_windows, product);
}

}  // end namespace webkit_glue