Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6210)

Unified Diff: chrome/browser/extensions/api/messaging/native_process_launcher.cc

Issue 1573843002: Make `chrome` target build without unused data members on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@content_target
Patch Set: browsertest fix Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/messaging/native_process_launcher.cc
diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher.cc b/chrome/browser/extensions/api/messaging/native_process_launcher.cc
index a60b166b035cf6c462e089cbb5591f46ee925ba0..224664c471169627d0636d96ac7cde283c80f3e7 100644
--- a/chrome/browser/extensions/api/messaging/native_process_launcher.cc
+++ b/chrome/browser/extensions/api/messaging/native_process_launcher.cc
@@ -78,8 +78,10 @@ class NativeProcessLauncherImpl : public NativeProcessLauncher {
bool allow_user_level_hosts_;
+#if defined(OS_WIN)
// Handle of the native window corresponding to the extension.
intptr_t window_handle_;
+#endif // OS_WIN
DISALLOW_COPY_AND_ASSIGN(Core);
};
@@ -92,9 +94,11 @@ class NativeProcessLauncherImpl : public NativeProcessLauncher {
NativeProcessLauncherImpl::Core::Core(bool allow_user_level_hosts,
intptr_t window_handle)
: detached_(false),
- allow_user_level_hosts_(allow_user_level_hosts),
- window_handle_(window_handle) {
-}
+ allow_user_level_hosts_(allow_user_level_hosts)
+#if defined(OS_WIN)
+ , window_handle_(window_handle)
+#endif // OS_WIN
+{}
NativeProcessLauncherImpl::Core::~Core() {
DCHECK(detached_);
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698