OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/first_run.h" |
| 6 |
5 #include <atlbase.h> | 7 #include <atlbase.h> |
6 #include <atlcom.h> | 8 #include <atlcom.h> |
7 #include <windows.h> | 9 #include <windows.h> |
8 #include <shlobj.h> | 10 #include <shlobj.h> |
9 | 11 |
10 #include <sstream> | 12 #include <sstream> |
11 | 13 |
12 #include "chrome/browser/first_run.h" | |
13 | |
14 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/object_watcher.h" | 18 #include "base/object_watcher.h" |
19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
20 #include "base/process.h" | 20 #include "base/process.h" |
21 #include "base/process_util.h" | 21 #include "base/process_util.h" |
22 #include "base/registry.h" | 22 #include "base/registry.h" |
23 #include "base/string_util.h" | 23 #include "base/string_util.h" |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 bool FirstRun::SetShowWelcomePagePref() { | 642 bool FirstRun::SetShowWelcomePagePref() { |
643 PrefService* local_state = g_browser_process->local_state(); | 643 PrefService* local_state = g_browser_process->local_state(); |
644 if (!local_state) | 644 if (!local_state) |
645 return false; | 645 return false; |
646 if (!local_state->IsPrefRegistered(prefs::kShouldShowWelcomePage)) { | 646 if (!local_state->IsPrefRegistered(prefs::kShouldShowWelcomePage)) { |
647 local_state->RegisterBooleanPref(prefs::kShouldShowWelcomePage, false); | 647 local_state->RegisterBooleanPref(prefs::kShouldShowWelcomePage, false); |
648 local_state->SetBoolean(prefs::kShouldShowWelcomePage, true); | 648 local_state->SetBoolean(prefs::kShouldShowWelcomePage, true); |
649 } | 649 } |
650 return true; | 650 return true; |
651 } | 651 } |
OLD | NEW |