| 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/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 content::WebContents* web_contents = | 176 content::WebContents* web_contents = |
| 177 browser->tab_strip_model()->GetActiveWebContents(); | 177 browser->tab_strip_model()->GetActiveWebContents(); |
| 178 profile = Profile::FromBrowserContext(web_contents->GetBrowserContext()); | 178 profile = Profile::FromBrowserContext(web_contents->GetBrowserContext()); |
| 179 AutolaunchInfoBarDelegate::Create( | 179 AutolaunchInfoBarDelegate::Create( |
| 180 InfoBarService::FromWebContents(web_contents), profile->GetPrefs(), | 180 InfoBarService::FromWebContents(web_contents), profile->GetPrefs(), |
| 181 profile); | 181 profile); |
| 182 return true; | 182 return true; |
| 183 } | 183 } |
| 184 | 184 |
| 185 void RegisterAutolaunchUserPrefs(PrefRegistrySyncable* registry) { | 185 void RegisterAutolaunchUserPrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 186 registry->RegisterIntegerPref( | 186 registry->RegisterIntegerPref( |
| 187 prefs::kShownAutoLaunchInfobar, 0, PrefRegistrySyncable::UNSYNCABLE_PREF); | 187 prefs::kShownAutoLaunchInfobar, |
| 188 0, |
| 189 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 188 } | 190 } |
| 189 | 191 |
| 190 } // namespace chrome | 192 } // namespace chrome |
| OLD | NEW |