| Index: chrome/browser/extensions/webstore_inline_installer.cc
|
| diff --git a/chrome/browser/extensions/webstore_inline_installer.cc b/chrome/browser/extensions/webstore_inline_installer.cc
|
| index 52f23c280b536524cd98810999f1609540765df7..82bf478ea0e794c9dd0a7feb9f868866b71deaee 100644
|
| --- a/chrome/browser/extensions/webstore_inline_installer.cc
|
| +++ b/chrome/browser/extensions/webstore_inline_installer.cc
|
| @@ -13,6 +13,8 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser_finder.h"
|
| #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h"
|
| +#include "chrome/common/pref_names.h"
|
| +#include "components/prefs/pref_service.h"
|
| #include "content/public/browser/navigation_entry.h"
|
| #include "content/public/browser/navigation_handle.h"
|
| #include "content/public/browser/web_contents.h"
|
| @@ -107,6 +109,11 @@ std::string WebstoreInlineInstaller::GetJsonPostData() {
|
| if (!web_contents())
|
| return std::string();
|
|
|
| + // Report extra data only when SafeBrowsing is enabled for the current
|
| + // profile.
|
| + if (!profile()->GetPrefs()->GetBoolean(prefs::kSafeBrowsingEnabled))
|
| + return std::string();
|
| +
|
| content::NavigationController& navigation_controller =
|
| web_contents()->GetController();
|
| content::NavigationEntry* navigation_entry =
|
|
|