Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Unified Diff: chrome/browser/printing/print_dialog_cloud.cc

Issue 10391158: Moves methods for finding browsers to browser_finder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include fixs Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/printing/print_dialog_cloud.cc
diff --git a/chrome/browser/printing/print_dialog_cloud.cc b/chrome/browser/printing/print_dialog_cloud.cc
index d35d915935f190d17fd9c8c21b075b3fc2203e1a..ccec885f1c769f4fd3d8d9c2aa9919d1b33f0dbf 100644
--- a/chrome/browser/printing/print_dialog_cloud.cc
+++ b/chrome/browser/printing/print_dialog_cloud.cc
@@ -20,6 +20,8 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser_dialogs.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/tab_contents/tab_contents_wrapper.h"
@@ -665,7 +667,7 @@ void CreateDialogImpl(const FilePath& path_to_file,
g_browser_process->profile_manager()->GetLoadedProfiles();
DCHECK_GT(loaded_profiles.size(), 0U);
profile = loaded_profiles[0];
- browser = BrowserList::GetLastActiveWithProfile(profile);
+ browser = browser::FindLastActiveWithProfile(profile);
}
DCHECK(profile);
PrefService* pref_service = profile->GetPrefs();

Powered by Google App Engine
This is Rietveld 408576698