OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/startup/autolaunch_prompt.h" | 5 #include "chrome/browser/ui/startup/autolaunch_prompt.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" | 10 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 if (infobar_helper->GetInfoBarCount() > 0) | 182 if (infobar_helper->GetInfoBarCount() > 0) |
183 return false; | 183 return false; |
184 | 184 |
185 profile = Profile::FromBrowserContext(web_contents->GetBrowserContext()); | 185 profile = Profile::FromBrowserContext(web_contents->GetBrowserContext()); |
186 infobar_helper->AddInfoBar(new AutolaunchInfoBarDelegate( | 186 infobar_helper->AddInfoBar(new AutolaunchInfoBarDelegate( |
187 infobar_helper, profile->GetPrefs(), profile)); | 187 infobar_helper, profile->GetPrefs(), profile)); |
188 | 188 |
189 return true; | 189 return true; |
190 } | 190 } |
191 | 191 |
192 void RegisterAutolaunchPrefs(PrefService* prefs) { | 192 void RegisterAutolaunchUserPrefs(PrefServiceSyncable* prefs) { |
193 prefs->RegisterIntegerPref( | 193 prefs->RegisterIntegerPref( |
194 prefs::kShownAutoLaunchInfobar, 0, PrefService::UNSYNCABLE_PREF); | 194 prefs::kShownAutoLaunchInfobar, 0, PrefServiceSyncable::UNSYNCABLE_PREF); |
195 } | 195 } |
196 | 196 |
197 } // namespace chrome | 197 } // namespace chrome |
OLD | NEW |