OLD | NEW |
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/common/chrome_version_info.h" | 5 #include "chrome/common/chrome_version_info.h" |
6 | 6 |
7 namespace webkit_glue { | 7 namespace webkit_glue { |
8 | 8 |
| 9 void AppendToLog(const char* filename, int line, const char* message) { |
| 10 } |
| 11 |
| 12 bool IsPluginRunningInRendererProcess() { |
| 13 return true; |
| 14 } |
| 15 |
9 // This function is called from BuildUserAgent so we have our own version | 16 // This function is called from BuildUserAgent so we have our own version |
10 // here instead of pulling in the whole renderer lib where this function | 17 // here instead of pulling in the whole renderer lib where this function |
11 // is implemented for Chrome. | 18 // is implemented for Chrome. |
12 std::string GetProductVersion() { | 19 std::string GetProductVersion() { |
13 chrome::VersionInfo version_info; | 20 chrome::VersionInfo version_info; |
14 std::string product("Chrome/"); | 21 std::string product("Chrome/"); |
15 product += version_info.is_valid() ? version_info.Version() | 22 product += version_info.is_valid() ? version_info.Version() |
16 : "0.0.0.0"; | 23 : "0.0.0.0"; |
17 return product; | 24 return product; |
18 } | 25 } |
19 | 26 |
20 } // end namespace webkit_glue | 27 } // end namespace webkit_glue |
21 | 28 |
OLD | NEW |