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

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

Issue 11573065: Not for check-in. Manually reviewable parts of https://codereview.chromium.org/11570009/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper.cc ('k') | chrome/browser/ui/tabs/pinned_tab_codec.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 RegisterAutolaunchPrefs(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/prefs/prefs_tab_helper.cc ('k') | chrome/browser/ui/tabs/pinned_tab_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698