diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-04 00:57:39 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-04 00:57:39 +0000 |
commit | ac4c668a5d726a0aa77097b11c4e63b188d3b47c (patch) | |
tree | 08d345b0170311401ef03c9f5342b7ea46752420 /chrome/browser/chromeos | |
parent | 1f139d1513ac3332cf940820e8be5195ca21333a (diff) | |
download | chromium_src-ac4c668a5d726a0aa77097b11c4e63b188d3b47c.zip chromium_src-ac4c668a5d726a0aa77097b11c4e63b188d3b47c.tar.gz chromium_src-ac4c668a5d726a0aa77097b11c4e63b188d3b47c.tar.bz2 |
And now NewRunnableMethod(), you die.
Kill off NewRunnableMethod() and remove silly declarations of unused ScopedRunnableMethodFactory(s).
BUG=none
TEST=existing.
Review URL: http://codereview.chromium.org/9034032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116250 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos')
7 files changed, 8 insertions, 27 deletions
diff --git a/chrome/browser/chromeos/audio_handler.h b/chrome/browser/chromeos/audio_handler.h index 2d99808..0051a07 100644 --- a/chrome/browser/chromeos/audio_handler.h +++ b/chrome/browser/chromeos/audio_handler.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -64,6 +64,4 @@ class AudioHandler { } // namespace chromeos -DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::AudioHandler); - #endif // CHROME_BROWSER_CHROMEOS_AUDIO_HANDLER_H_ diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc index 5aa499f..bb32a82 100644 --- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc +++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc @@ -171,10 +171,6 @@ class StubLogin : public chromeos::LoginStatusConsumer, bool profile_prepared_; }; -// Allows authenticator to be invoked without adding refcounting. The instances -// will delete themselves upon completion. -DISABLE_RUNNABLE_METHOD_REFCOUNT(StubLogin); - void OptionallyRunChromeOSLoginManager(const CommandLine& parsed_command_line, Profile* profile) { if (parsed_command_line.HasSwitch(switches::kLoginManager)) { diff --git a/chrome/browser/chromeos/customization_document.cc b/chrome/browser/chromeos/customization_document.cc index 27e504d..ea04841 100644 --- a/chrome/browser/chromeos/customization_document.cc +++ b/chrome/browser/chromeos/customization_document.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -69,8 +69,6 @@ const int kRetriesDelayInSec = 2; } // anonymous namespace -DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::ServicesCustomizationDocument); - namespace chromeos { // CustomizationDocument implementation. --------------------------------------- diff --git a/chrome/browser/chromeos/input_method/input_method_manager.cc b/chrome/browser/chromeos/input_method/input_method_manager.cc index 3729be5..a54d195 100644 --- a/chrome/browser/chromeos/input_method/input_method_manager.cc +++ b/chrome/browser/chromeos/input_method/input_method_manager.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -1430,8 +1430,3 @@ InputMethodManager* InputMethodManager::GetInstance() { } // namespace input_method } // namespace chromeos - -// Allows InvokeLater without adding refcounting. This class is a Singleton and -// won't be deleted until it's last InvokeLater is run. -DISABLE_RUNNABLE_METHOD_REFCOUNT( - chromeos::input_method::InputMethodManagerImpl); diff --git a/chrome/browser/chromeos/login/ownership_service.cc b/chrome/browser/chromeos/login/ownership_service.cc index 6e7fa1e..6d3cf6a 100644 --- a/chrome/browser/chromeos/login/ownership_service.cc +++ b/chrome/browser/chromeos/login/ownership_service.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -55,8 +55,8 @@ void OwnershipService::Prewarm() { // This can happen only for particular test: OwnershipServiceTest. It uses // mocks and for that uses OwnershipService not as a regular singleton but // as a resurrecting object. This behaviour conflicts with - // DISABLE_RUNNABLE_METHOD_REFCOUNT. So avoid posting task in those - // circumstances in order to avoid accessing already deleted object. + // base::Unretained(). So avoid posting task in those circumstances + // in order to avoid accessing already deleted object. } } diff --git a/chrome/browser/chromeos/media/media_player.cc b/chrome/browser/chromeos/media/media_player.cc index f3cb2db..4642824 100644 --- a/chrome/browser/chromeos/media/media_player.cc +++ b/chrome/browser/chromeos/media/media_player.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -75,10 +75,6 @@ int MediaPlayer::GetPlaylistPosition() const { // //////////////////////////////////////////////////////////////////////////////// -// Allows InvokeLater without adding refcounting. This class is a Singleton and -// won't be deleted until it's last InvokeLater is run. -DISABLE_RUNNABLE_METHOD_REFCOUNT(MediaPlayer); - MediaPlayer::~MediaPlayer() { } diff --git a/chrome/browser/chromeos/mobile_config.cc b/chrome/browser/chromeos/mobile_config.cc index 852696a..9ed9a1d 100644 --- a/chrome/browser/chromeos/mobile_config.cc +++ b/chrome/browser/chromeos/mobile_config.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -56,8 +56,6 @@ const char kLocalCarrierConfigPath[] = } // anonymous namespace -DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::MobileConfig); - namespace chromeos { // MobileConfig::CarrierDeal implementation. ----------------------------------- |