Index: chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc b/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
index 45c3b9beb630ee1f38d02ca48c568b0a6eecbb42..2a06e4d955d28ee3f4ca856f0dd2f14683390f10 100644 |
--- a/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
@@ -19,6 +19,7 @@ |
#include "base/strings/string16.h" |
#include "base/strings/stringprintf.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "base/threading/thread_restrictions.h" |
#include "build/build_config.h" |
#include "chrome/app/chrome_command_ids.h" |
#include "chrome/browser/browser_process.h" |
@@ -114,6 +115,7 @@ class ContextMenuBrowserTest : public InProcessBrowserTest { |
// Does not work on ChromeOS. |
Profile* CreateSecondaryProfile(int profile_num) { |
+ base::ThreadRestrictions::ScopedAllowIO allow_io; |
ProfileManager* profile_manager = g_browser_process->profile_manager(); |
base::FilePath profile_path = profile_manager->user_data_dir(); |
profile_path = profile_path.AppendASCII( |