Commit fe35349c authored by Greg Thompson's avatar Greg Thompson Committed by Commit Bot

Suppress the outdated build detector for cloud-managed installs.

BUG=995719
R=rogerta@chromium.org

Change-Id: I2156395f80970770bf1fa38af040ce2f07328dfc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761600Reviewed-by: default avatarRoger Tawa <rogerta@chromium.org>
Commit-Queue: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689546}
parent 70912634
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#if defined(OS_WIN) #if defined(OS_WIN)
#include "base/enterprise_util.h" #include "base/enterprise_util.h"
#include "chrome/browser/policy/browser_dm_token_storage.h"
#include "chrome/installer/util/google_update_settings.h" #include "chrome/installer/util/google_update_settings.h"
#include "chrome/installer/util/install_util.h" #include "chrome/installer/util/install_util.h"
#elif defined(OS_MACOSX) #elif defined(OS_MACOSX)
...@@ -400,8 +401,10 @@ bool UpgradeDetectorImpl::DetectOutdatedInstall() { ...@@ -400,8 +401,10 @@ bool UpgradeDetectorImpl::DetectOutdatedInstall() {
#if defined(OS_WIN) #if defined(OS_WIN)
// Don't show the update bubbles to enterprise users. // Don't show the update bubbles to enterprise users.
if (base::IsMachineExternallyManaged()) if (base::IsMachineExternallyManaged() ||
!policy::BrowserDMTokenStorage::Get()->RetrieveDMToken().empty()) {
return false; return false;
}
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment