| Index: chrome/browser/ui/webui/ntp/ntp_login_handler.cc
|
| diff --git a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
|
| index f429b7915efb3bba8e061e168d544e5559eb70d4..a9c727639a04687e6ba09663deec3ffdfc2464e4 100644
|
| --- a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
|
| +++ b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
|
| @@ -20,6 +20,7 @@
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/profiles/profile_metrics.h"
|
| #include "chrome/browser/sync/profile_sync_service.h"
|
| +#include "chrome/browser/sync/profile_sync_service_factory.h"
|
| #include "chrome/browser/sync/sync_setup_flow.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| @@ -174,7 +175,8 @@ void NTPLoginHandler::HandleLoginMessageSeen(const ListValue* args) {
|
| }
|
|
|
| void NTPLoginHandler::HandleShowAdvancedLoginUI(const ListValue* args) {
|
| - Profile::FromWebUI(web_ui())->GetProfileSyncService()->ShowConfigure(false);
|
| + ProfileSyncServiceFactory::GetInstance()->GetForProfile(
|
| + Profile::FromWebUI(web_ui()))->ShowConfigure(false);
|
| }
|
|
|
| void NTPLoginHandler::UpdateLogin() {
|
|
|