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

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

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. Created 8 years 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/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
182 if (infobar_service->GetInfoBarCount() > 0) 182 if (infobar_service->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_service->AddInfoBar(new AutolaunchInfoBarDelegate( 186 infobar_service->AddInfoBar(new AutolaunchInfoBarDelegate(
187 infobar_service, profile->GetPrefs(), profile)); 187 infobar_service, 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
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/autolaunch_prompt.cc ('k') | chrome/browser/ui/sync/one_click_signin_sync_starter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698