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

Side by Side Diff: chrome/browser/ui/startup/autolaunch_prompt_win.cc

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/autolaunch_prompt.cc ('k') | chrome/browser/ui/sync/profile_signin_confirmation_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698