diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 19:51:14 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 19:51:14 +0000 |
commit | 5cfc2a5f0e1fae171b1a5bdd070cccd869dbe02d (patch) | |
tree | 7dc32b8e7d086e5c66e4d1342cb0399110ab364e /win8 | |
parent | cf145a214123822304e2975e3260f829ec8a3769 (diff) | |
download | chromium_src-5cfc2a5f0e1fae171b1a5bdd070cccd869dbe02d.zip chromium_src-5cfc2a5f0e1fae171b1a5bdd070cccd869dbe02d.tar.gz chromium_src-5cfc2a5f0e1fae171b1a5bdd070cccd869dbe02d.tar.bz2 |
win8: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST.
It's no longer providing value as the MSVC warning is disabled during compilation. Refer to bug for details.
BUG=234765
Review URL: https://codereview.chromium.org/14364009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196806 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8')
-rw-r--r-- | win8/test/open_with_dialog_controller.cc | 2 | ||||
-rw-r--r-- | win8/test/ui_automation_client.cc | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/win8/test/open_with_dialog_controller.cc b/win8/test/open_with_dialog_controller.cc index 7a63dd0..4ae24f0 100644 --- a/win8/test/open_with_dialog_controller.cc +++ b/win8/test/open_with_dialog_controller.cc @@ -99,7 +99,7 @@ OpenWithDialogController::Context::Context() open_as_info_flags_(), open_with_result_(E_FAIL), automation_result_(E_FAIL), - ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {} + weak_ptr_factory_(this) {} OpenWithDialogController::Context::~Context() { DCHECK(thread_checker_.CalledOnValidThread()); diff --git a/win8/test/ui_automation_client.cc b/win8/test/ui_automation_client.cc index 42de5d5..fff2828 100644 --- a/win8/test/ui_automation_client.cc +++ b/win8/test/ui_automation_client.cc @@ -170,8 +170,7 @@ void UIAutomationClient::Context::DeleteOnAutomationThread() { delete this; } -UIAutomationClient::Context::Context() - : ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {} +UIAutomationClient::Context::Context() : weak_ptr_factory_(this) {} UIAutomationClient::Context::~Context() { DCHECK(thread_checker_.CalledOnValidThread()); |