summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_version_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/chrome_version_info.cc')
-rw-r--r--chrome/common/chrome_version_info.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/common/chrome_version_info.cc b/chrome/common/chrome_version_info.cc
index a26f81f..5157c4a 100644
--- a/chrome/common/chrome_version_info.cc
+++ b/chrome/common/chrome_version_info.cc
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/file_version_info.h"
#include "base/string_util.h"
+#include "base/thread_restrictions.h"
#include "build/build_config.h"
namespace chrome {
@@ -16,6 +17,8 @@ namespace chrome {
// FileVersionInfo for the current module.
VersionInfo::VersionInfo() {
+ // The current module is already loaded in memory, so this will be cheap.
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
version_info_.reset(FileVersionInfo::CreateFileVersionInfoForCurrentModule());
}