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

Side by Side Diff: chrome/browser/download/download_status_updater_win.cc

Issue 706873002: [chrome/browser/download] Convert VLOGs to DVLOGs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/download/download_status_updater.h" 5 #include "chrome/browser/download/download_status_updater.h"
6 6
7 #include <shobjidl.h> 7 #include <shobjidl.h>
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 10 matching lines...) Expand all
21 bool progress_known, 21 bool progress_known,
22 float progress) { 22 float progress) {
23 // Taskbar progress bar is only supported on Win7. 23 // Taskbar progress bar is only supported on Win7.
24 if (base::win::GetVersion() < base::win::VERSION_WIN7) 24 if (base::win::GetVersion() < base::win::VERSION_WIN7)
25 return; 25 return;
26 26
27 base::win::ScopedComPtr<ITaskbarList3> taskbar; 27 base::win::ScopedComPtr<ITaskbarList3> taskbar;
28 HRESULT result = taskbar.CreateInstance(CLSID_TaskbarList, NULL, 28 HRESULT result = taskbar.CreateInstance(CLSID_TaskbarList, NULL,
29 CLSCTX_INPROC_SERVER); 29 CLSCTX_INPROC_SERVER);
30 if (FAILED(result)) { 30 if (FAILED(result)) {
31 VLOG(1) << "Failed creating a TaskbarList object: " << result; 31 DVLOG(1) << "Failed creating a TaskbarList object: " << result;
32 return; 32 return;
33 } 33 }
34 34
35 result = taskbar->HrInit(); 35 result = taskbar->HrInit();
36 if (FAILED(result)) { 36 if (FAILED(result)) {
37 LOG(ERROR) << "Failed initializing an ITaskbarList3 interface."; 37 LOG(ERROR) << "Failed initializing an ITaskbarList3 interface.";
38 return; 38 return;
39 } 39 }
40 40
41 // Iterate through all the browser windows, and draw the progress bar. 41 // Iterate through all the browser windows, and draw the progress bar.
(...skipping 16 matching lines...) Expand all
58 58
59 void DownloadStatusUpdater::UpdateAppIconDownloadProgress( 59 void DownloadStatusUpdater::UpdateAppIconDownloadProgress(
60 content::DownloadItem* download) { 60 content::DownloadItem* download) {
61 61
62 // Always update overall progress. 62 // Always update overall progress.
63 float progress = 0; 63 float progress = 0;
64 int download_count = 0; 64 int download_count = 0;
65 bool progress_known = GetProgress(&progress, &download_count); 65 bool progress_known = GetProgress(&progress, &download_count);
66 UpdateTaskbarProgressBar(download_count, progress_known, progress); 66 UpdateTaskbarProgressBar(download_count, progress_known, progress);
67 } 67 }
OLDNEW
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | chrome/browser/download/save_page_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698