感谢 江河 的投递.
最近的Chromium 21247版本的代码中出现了Chrome OS身影。
首先在sys_info.h这个文件
if defined(OS_CHROMEOS)
// Returns the name of the version entry we wish to look up in the
// Linux Standard Base release information file.
static std::string GetLinuxStandardBaseVersionKey();
// Parses /etc/lsb-release to get version information for Google Chrome OS.
// Declared here so it can be exposed for unit testing.
static void ParseLsbRelease(const std::string& lsb_release,
int32 *major_version,
int32 *minor_version,
int32 *bugfix_version);
从这段代码可以看出,Chrome OS的版本号存放在/etc/lsb-release这个文件中
再有就是sys_info_unittest.cc这个文件
#if defined(OS_CHROMEOS)
TEST_F(SysInfoTest, GoogleChromeOSVersionNumbers) {
int32 os_major_version = -1;
int32 os_minor_version = -1;
int32 os_bugfix_version = -1;
std::string lsb_release("FOO=1234123.34.5\n");
lsb_release.append(base::SysInfo::GetLinuxStandardBaseVersionKey());
lsb_release.append("=1.2.3.4\n");
可以看出Chrome OS的版本号由四位组成,这和目前的Chrome 3.0.195.3这样的版本号非常一致。
Google曾在其宣布Chrome OS时就表示将在今年下半年公布Chrome OS的代码,我们相信随着时间的推移,Chromium中关于Chrome OS的代码将越来越多。
本站文章除注明转载外,均为本站原创编译
转载请注明:文章转载自:谷奥——探寻谷歌的奥秘 [http://www.guao.hk]
本文标题:Chrome OS再现身影,这次是在Chromium的代码中
本文地址:http://www.guao.hk/posts/chrome-os-in-chromium-scource.html
本文短网址:http://guao.cc/d5z
转载请注明:文章转载自:谷奥——探寻谷歌的奥秘 [http://www.guao.hk]
本文标题:Chrome OS再现身影,这次是在Chromium的代码中
本文地址:http://www.guao.hk/posts/chrome-os-in-chromium-scource.html
本文短网址:http://guao.cc/d5z







真细心,呵呵