Merge pull request #32 from brightray/chrome-31

Update to Chrome 31.0.1650.57
This commit is contained in:
Adam Roben 2013-12-02 09:53:38 -08:00
Родитель fba7f28bcc f484ce1fc5
Коммит 4252769640
6 изменённых файлов: 1530 добавлений и 1436 удалений

Просмотреть файл

@ -1 +1 @@
30.0.1599.69
31.0.1650.57

Просмотреть файл

@ -46,8 +46,12 @@
'dependencies': [
'<(DEPTH)/base/base.gyp:base_prefs',
'<(DEPTH)/content/content.gyp:content',
'<(DEPTH)/content/content.gyp:content_app_both',
'<(DEPTH)/content/content.gyp:content_shell_pak',
],
'sources': [
'empty.cc',
],
'conditions': [
['OS=="win"', {
'sources': [

2
chromiumcontent/empty.cc Normal file
Просмотреть файл

@ -0,0 +1,2 @@
// This file exists solely to tell gyp to link libchromiumcontent as a C++
// module rather than as a C module.

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,21 +1,21 @@
Index: v8/include/v8.h
===================================================================
--- v8/include/v8.h (revision 14861)
--- v8/include/v8.h (revision 17714)
+++ v8/include/v8.h (working copy)
@@ -4325,7 +4325,7 @@
@@ -4254,7 +4254,7 @@
* be performed.
*/
class V8_EXPORT AssertNoGCScope {
-#ifndef DEBUG
+#ifdef NDEBUG
// TODO(yangguo): remove isolate argument.
V8_INLINE(AssertNoGCScope(Isolate* isolate)) { }
V8_INLINE AssertNoGCScope(Isolate* isolate) {}
#else
Index: v8/src/api.cc
===================================================================
--- v8/src/api.cc (revision 14861)
--- v8/src/api.cc (revision 17714)
+++ v8/src/api.cc (working copy)
@@ -6694,7 +6694,7 @@
@@ -6519,7 +6519,7 @@
}

Просмотреть файл

@ -11,7 +11,8 @@ VENDOR_DIR = os.path.join(SOURCE_ROOT, 'vendor')
DEPOT_TOOLS_DIR = os.path.join(VENDOR_DIR, 'depot_tools')
CHROMIUM_DIR = os.path.join(VENDOR_DIR, 'chromium')
SRC_DIR = os.path.join(CHROMIUM_DIR, 'src')
CHROMIUMCONTENT_DIR = os.path.join(SRC_DIR, 'chromiumcontent')
CHROMIUMCONTENT_SOURCE_DIR = os.path.join(SOURCE_ROOT, 'chromiumcontent')
CHROMIUMCONTENT_DESTINATION_DIR = os.path.join(SRC_DIR, 'chromiumcontent')
def main():
@ -20,7 +21,7 @@ def main():
install_win_toolchain() or
import_win_environment() or
apply_patches() or
copy_gyp_files() or
copy_chromiumcontent_files() or
run_gyp() or
install_win_tool_wrapper())
@ -92,14 +93,22 @@ def import_win_environment():
'windows_sdk_path="{0}"'.format(os.environ['WindowsSDKDir'])
def copy_gyp_files():
def copy_chromiumcontent_files():
try:
os.makedirs(CHROMIUMCONTENT_DIR)
os.makedirs(CHROMIUMCONTENT_DESTINATION_DIR)
except OSError as e:
if e.errno != errno.EEXIST:
raise
shutil.copyfile(os.path.join(SOURCE_ROOT, 'chromiumcontent.gyp'),
os.path.join(CHROMIUMCONTENT_DIR, 'chromiumcontent.gyp'))
for dirpath, dirnames, filenames in os.walk(CHROMIUMCONTENT_SOURCE_DIR):
for dirname in dirnames:
mkdir_p(os.path.join(dirpath, dirname))
for filename in filenames:
source = os.path.join(dirpath, filename)
relative = os.path.relpath(source, start=CHROMIUMCONTENT_SOURCE_DIR)
destination = os.path.join(CHROMIUMCONTENT_DESTINATION_DIR, relative)
if is_newer(destination, source):
continue
shutil.copy2(source, destination)
def apply_patches():
@ -123,7 +132,7 @@ def run_gyp():
os.chdir(SOURCE_ROOT)
REL_SRC_DIR = os.path.relpath(SRC_DIR)
REL_CHROMIUMCONTENT_DIR = os.path.relpath(CHROMIUMCONTENT_DIR)
REL_CHROMIUMCONTENT_DESTINATION_DIR = os.path.relpath(CHROMIUMCONTENT_DESTINATION_DIR)
python = sys.executable
if sys.platform in ['win32', 'cygwin']:
@ -135,7 +144,7 @@ def run_gyp():
gyp = os.path.join(REL_SRC_DIR, 'build', 'gyp_chromium')
return subprocess.call([python, gyp, '-Ichromiumcontent.gypi',
'--depth', REL_SRC_DIR,
os.path.join(REL_CHROMIUMCONTENT_DIR,
os.path.join(REL_CHROMIUMCONTENT_DESTINATION_DIR,
'chromiumcontent.gyp')])
@ -155,6 +164,19 @@ def chromium_python_path():
return os.path.join(SRC_DIR, 'third_party', 'python_26', 'python.exe')
def mkdir_p(path):
try:
os.makedirs(path)
except OSError as e:
if e.errno != errno.EEXIST:
raise
def is_newer(destination, source):
return os.path.exists(destination) and \
os.path.getmtime(destination) > os.path.getmtime(source)
if __name__ == '__main__':
import sys
sys.exit(main())