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

Unified Diff: chrome/browser/download/download_status_updater_win.cc

Issue 11411286: Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: keep base/win/metro.h in omnibox_view_win.cc for IsTSFAwareRequired() Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_status_updater_win.cc
diff --git a/chrome/browser/download/download_status_updater_win.cc b/chrome/browser/download/download_status_updater_win.cc
index 1c95fab392e590c19b6c9c12914f6e31cdaba4d7..c28cb1a688499ff9e5c2db548526709acc0aae03 100644
--- a/chrome/browser/download/download_status_updater_win.cc
+++ b/chrome/browser/download/download_status_updater_win.cc
@@ -23,6 +23,7 @@
#include "googleurl/src/gurl.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+#include "win8/util/win8_util.h"
// This code doesn't compile with Aura on. TODO(avi): hook it up so that
// win_aura can do platform integration.
@@ -94,7 +95,7 @@ void DownloadStatusUpdater::UpdateAppIconDownloadProgress(
UpdateTaskbarProgressBar(download_count, progress_known, progress);
// Fire notifications when downloads complete.
- if (!base::win::IsMetroProcess())
+ if (!win8::IsSingleWindowMetroMode())
return;
if (download->GetState() != content::DownloadItem::COMPLETE)
« no previous file with comments | « chrome/browser/bookmarks/bookmark_manager_extension_api.cc ('k') | chrome/browser/extensions/api/tabs/tabs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698