summaryrefslogtreecommitdiffstats
path: root/chrome/browser/aeropeek_manager.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-21 20:57:12 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-21 20:57:12 +0000
commit8e96e50baaa3cf984eb64355391d7ec48a958e81 (patch)
treeaf80bc851bc4421a5e159c3bd1bc1cb31ee21f55 /chrome/browser/aeropeek_manager.cc
parent6662050331dad5db984ac85e8705ff49236dbe51 (diff)
downloadchromium_src-8e96e50baaa3cf984eb64355391d7ec48a958e81.zip
chromium_src-8e96e50baaa3cf984eb64355391d7ec48a958e81.tar.gz
chromium_src-8e96e50baaa3cf984eb64355391d7ec48a958e81.tar.bz2
Convert LOG(INFO) to VLOG(1) - misc. chrome/browser/*.
BUG=none TEST=none Review URL: http://codereview.chromium.org/4008001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63421 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/aeropeek_manager.cc')
-rw-r--r--chrome/browser/aeropeek_manager.cc36
1 files changed, 7 insertions, 29 deletions
diff --git a/chrome/browser/aeropeek_manager.cc b/chrome/browser/aeropeek_manager.cc
index e10c3a1..d1837d7 100644
--- a/chrome/browser/aeropeek_manager.cc
+++ b/chrome/browser/aeropeek_manager.cc
@@ -261,36 +261,14 @@ class RegisterThumbnailTask : public Task {
// message.
// TODO(hbono): we need to check this registered message?
ScopedComPtr<ITaskbarList3> taskbar;
- HRESULT result = taskbar.CreateInstance(CLSID_TaskbarList, NULL,
- CLSCTX_INPROC_SERVER);
- if (FAILED(result)) {
- LOG(INFO) << "failed creating a TaskbarList object: " << result;
+ if (FAILED(taskbar.CreateInstance(CLSID_TaskbarList, NULL,
+ CLSCTX_INPROC_SERVER)) ||
+ FAILED(taskbar->HrInit()) ||
+ FAILED(taskbar->RegisterTab(window_, frame_window_)) ||
+ FAILED(taskbar->SetTabOrder(window_, NULL)))
return;
- }
-
- result = taskbar->HrInit();
- if (FAILED(result)) {
- LOG(INFO) << "failed initializing a TaskbarList obejct: " << result;
- return;
- }
-
- result = taskbar->RegisterTab(window_, frame_window_);
- if (FAILED(result)) {
- LOG(INFO) << "failed registering a thumbnail window: " << result;
- return;
- }
-
- result = taskbar->SetTabOrder(window_, NULL);
- if (FAILED(result)) {
- LOG(INFO) << "failed adding a thumbnail window: " << result;
- return;
- }
-
- if (active_) {
- result = taskbar->SetTabActive(window_, frame_window_, 0);
- if (FAILED(result))
- LOG(INFO) << "failed activating a thumbnail window: " << result;
- }
+ if (active_)
+ taskbar->SetTabActive(window_, frame_window_, 0);
}
private: