Skip to content

Commit

Permalink
Move v8_breakpad_support_win from common to child
Browse files Browse the repository at this point in the history
Part of removing dependency of Windows browser DLL on v8.

R=jochen@chromium.org
BUG=581766

Review-Url: https://codereview.chromium.org/2627713007
Cr-Commit-Position: refs/heads/master@{#443244}
  • Loading branch information
sgraham authored and Commit bot committed Jan 12, 2017
1 parent bba0e66 commit 66c78e9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions chrome/app/chrome_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
#include <algorithm>
#include "base/debug/close_handle_hook_win.h"
#include "chrome/browser/downgrade/user_data_downgrade.h"
#include "chrome/child/v8_breakpad_support_win.h"
#include "chrome/common/child_process_logging.h"
#include "chrome/common/v8_breakpad_support_win.h"
#include "components/crash/content/app/crashpad.h"
#include "sandbox/win/src/sandbox.h"
#include "ui/base/resource/resource_bundle_win.h"
Expand Down Expand Up @@ -533,7 +533,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exit_code) {
base::trace_event::TraceLog::GetInstance()->SetArgumentFilterPredicate(
base::Bind(&IsTraceEventArgsWhitelisted));

#if defined(OS_WIN)
#if defined(OS_WIN) && !defined(CHROME_MULTIPLE_DLL_BROWSER)
v8_breakpad_support::SetUp();
#endif

Expand Down
3 changes: 3 additions & 0 deletions chrome/child/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ static_library("child") {
sources = [
"pdf_child_init.cc",
"pdf_child_init.h",
"v8_breakpad_support_win.cc",
"v8_breakpad_support_win.h",
]

configs += [ "//build/config/compiler:wexit_time_destructors" ]

deps = [
"//base",
"//content/public/child",
"//gin",
]
}
1 change: 1 addition & 0 deletions chrome/child/DEPS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include_rules = [
"+content/public/child",
"+gin",
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/common/v8_breakpad_support_win.h"
#include "chrome/child/v8_breakpad_support_win.h"

#include <windows.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_COMMON_V8_BREAKPAD_SUPPORT_WIN_H_
#define CHROME_COMMON_V8_BREAKPAD_SUPPORT_WIN_H_
#ifndef CHROME_CHILD_V8_BREAKPAD_SUPPORT_WIN_H_
#define CHROME_CHILD_V8_BREAKPAD_SUPPORT_WIN_H_

namespace v8_breakpad_support {

Expand All @@ -12,4 +12,4 @@ void SetUp();

} // namespace v8_breakpad_support

#endif // CHROME_COMMON_V8_BREAKPAD_SUPPORT_WIN_H_
#endif // CHROME_CHILD_V8_BREAKPAD_SUPPORT_WIN_H_
2 changes: 0 additions & 2 deletions chrome/common/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ static_library("common") {
"tts_utterance_request.h",
"url_constants.cc",
"url_constants.h",
"v8_breakpad_support_win.cc",
"v8_breakpad_support_win.h",
"web_application_info.cc",
"web_application_info.h",
"widevine_cdm_constants.cc",
Expand Down

0 comments on commit 66c78e9

Please sign in to comment.