| Index: chrome/browser/ui/webui/options/startup_pages_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/startup_pages_handler.cc b/chrome/browser/ui/webui/options/startup_pages_handler.cc
|
| index 2d2b476fde558f7c161c0c32098629900aa07c41..9ffb34fff8fce9772807c25124c5044f42195128 100644
|
| --- a/chrome/browser/ui/webui/options/startup_pages_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/startup_pages_handler.cc
|
| @@ -130,17 +130,10 @@ void StartupPagesHandler::OnItemsRemoved(int start, int length) {
|
| OnModelChanged();
|
| }
|
|
|
| -void StartupPagesHandler::Observe(
|
| - int type,
|
| - const content::NotificationSource& source,
|
| - const content::NotificationDetails& details) {
|
| - if (type == chrome::NOTIFICATION_PREF_CHANGED) {
|
| - std::string* pref = content::Details<std::string>(details).ptr();
|
| - if (*pref == prefs::kURLsToRestoreOnStartup) {
|
| - UpdateStartupPages();
|
| - } else {
|
| - NOTREACHED();
|
| - }
|
| +void StartupPagesHandler::OnPreferenceChanged(PrefServiceBase* service,
|
| + const std::string& pref_name) {
|
| + if (pref_name == prefs::kURLsToRestoreOnStartup) {
|
| + UpdateStartupPages();
|
| } else {
|
| NOTREACHED();
|
| }
|
|
|