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

Side by Side Diff: chrome/browser/first_run.cc

Issue 115309: Remove even more ATL dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/history/history_publisher.h » ('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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/history/history_publisher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698