Commit cd82dc64 authored by ben@chromium.org's avatar ben@chromium.org

Don't use BrowserList::GetLastActive from file manager util.

Instead, just use the default profile, there is no other profile on cros.

http://crbug.com/129187
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10421015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138356 0039d316-1c4b-4281-b951-d872f2087c98
parent b6723a55
......@@ -26,7 +26,6 @@
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/simple_message_box.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
......@@ -440,9 +439,7 @@ void OpenFileBrowser(const FilePath& path,
if (FileManageTabExists(path, mode))
return;
Browser* last_active = BrowserList::GetLastActive();
Profile* profile = last_active ? last_active->profile() :
ProfileManager::GetDefaultProfileOrOffTheRecord();
Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord();
std::string url = chrome::kChromeUIFileManagerURL;
if (flag_name.size()) {
......
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