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

Unified Diff: chrome/browser/chromeos/login/screens/terms_of_service_screen.cc

Issue 13633003: Part of multiprofile implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: m Created 7 years, 8 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/chromeos/login/screens/terms_of_service_screen.cc
diff --git a/chrome/browser/chromeos/login/screens/terms_of_service_screen.cc b/chrome/browser/chromeos/login/screens/terms_of_service_screen.cc
index eb309ce61b348ef4140becb49488f3f9883628bd..e5838570b8a3d5f35ecfb87ff09a2d3e93933979 100644
--- a/chrome/browser/chromeos/login/screens/terms_of_service_screen.cc
+++ b/chrome/browser/chromeos/login/screens/terms_of_service_screen.cc
@@ -15,8 +15,8 @@
#include "chrome/browser/chromeos/login/user.h"
#include "chrome/browser/chromeos/login/user_manager.h"
#include "chrome/browser/chromeos/login/wizard_controller.h"
+#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/pref_names.h"
#include "google_apis/gaia/gaia_auth_util.h"
#include "googleurl/src/gurl.h"
@@ -82,7 +82,7 @@ void TermsOfServiceScreen::OnActorDestroyed(TermsOfServiceScreenActor* actor) {
}
void TermsOfServiceScreen::StartDownload() {
- const PrefService* prefs = ProfileManager::GetDefaultProfile()->GetPrefs();
+ const PrefService* prefs = ProfileHelper::GetSigninProfile()->GetPrefs();
// If an URL from which the Terms of Service can be downloaded has not been
// set, show an error message to the user.
std::string terms_of_service_url =
« no previous file with comments | « chrome/browser/chromeos/login/proxy_settings_dialog.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698