diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 23:32:06 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 23:32:06 +0000 |
commit | 6cef59c4b68f538e67ae458e47f92975e253cb72 (patch) | |
tree | 64e8d6855ca9279ec1a6b5afda50ff47d4cfa059 /base | |
parent | f67019ad2da4b89380a209e466fad006dc977ae5 (diff) | |
download | chromium_src-6cef59c4b68f538e67ae458e47f92975e253cb72.zip chromium_src-6cef59c4b68f538e67ae458e47f92975e253cb72.tar.gz chromium_src-6cef59c4b68f538e67ae458e47f92975e253cb72.tar.bz2 |
Create a stub chrome executable that crashes when run.
This is mostly making sure we have all the symbols we need.
Review URL: http://codereview.chromium.org/19683
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8930 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/base_lib.scons | 10 | ||||
-rw-r--r-- | base/idle_timer_none.cc | 25 |
2 files changed, 33 insertions, 2 deletions
diff --git a/base/base_lib.scons b/base/base_lib.scons index afb82ea..ac27c3c 100644 --- a/base/base_lib.scons +++ b/base/base_lib.scons @@ -277,8 +277,9 @@ if env.Bit('posix'): 'event_recorder.cc', 'file_version_info.cc', - # We have an implementation of idle_timer, but it's unclear if we want it - # yet, so it's commented out for now. Leave this 'unported'. + # We have an implementation of idle_timer that depends on XScreenSaver, + # but it's unclear if we want it yet, so it's commented out for now. + # Leave this 'unported'. 'idle_timer.cc', 'object_watcher.cc', @@ -286,6 +287,11 @@ if env.Bit('posix'): 'resource_util.cc', # Uses HMODULE, but may be abstractable. ) + input_files.Append( + # See above note about idle_timer.cc. + 'idle_timer_none.cc', + ) + if not env.Bit('windows'): # Remove windows-specific files on non-Windows platforms. # TODO(sgk): diff --git a/base/idle_timer_none.cc b/base/idle_timer_none.cc new file mode 100644 index 0000000..946535e --- /dev/null +++ b/base/idle_timer_none.cc @@ -0,0 +1,25 @@ +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// A stub implementation of IdleTimer used to provide symbols needed by Chrome. +// It's unclear whether we need the idle timer in the linux port, so we're +// leaving it unported for now. + +#include "base/idle_timer.h" + +namespace base { + +IdleTimer::IdleTimer(TimeDelta idle_time, bool repeat) { +} + +IdleTimer::~IdleTimer() { +} + +void IdleTimer::Start() { +} + +void IdleTimer::Stop() { +} + +} // namespace base |