diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-13 23:01:07 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-13 23:01:07 +0000 |
commit | adfe188f467fda2936b1a051dff5280afefc5a13 (patch) | |
tree | 7912d2718ec605eee30c2c924ccd1a1f43752e68 /chrome/browser/first_run.cc | |
parent | 1de282c6e1cfbe4fed87babe242262b2d72330ff (diff) | |
download | chromium_src-adfe188f467fda2936b1a051dff5280afefc5a13.zip chromium_src-adfe188f467fda2936b1a051dff5280afefc5a13.tar.gz chromium_src-adfe188f467fda2936b1a051dff5280afefc5a13.tar.bz2 |
Add new search engine dialog for first run process.
BUG= 37564
TEST= start Chrome with --first-run enabled -- you should see a new search engine selection dialog.
Review URL: http://codereview.chromium.org/1586005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.cc')
-rw-r--r-- | chrome/browser/first_run.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/browser/first_run.cc b/chrome/browser/first_run.cc index 7304494..88e31a3 100644 --- a/chrome/browser/first_run.cc +++ b/chrome/browser/first_run.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -114,6 +114,18 @@ bool FirstRun::SetOEMFirstRunBubblePref() { return true; } +bool FirstRun::SetMinimalFirstRunBubblePref() { + PrefService* local_state = g_browser_process->local_state(); + if (!local_state) + return false; + if (!local_state->FindPreference(prefs::kShouldUseMinimalFirstRunBubble)) { + local_state->RegisterBooleanPref(prefs::kShouldUseMinimalFirstRunBubble, + false); + local_state->SetBoolean(prefs::kShouldUseMinimalFirstRunBubble, true); + } + return true; +} + int FirstRun::ImportFromFile(Profile* profile, const CommandLine& cmdline) { std::wstring file_path = cmdline.GetSwitchValue(switches::kImportFromFile); if (file_path.empty()) { |