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

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

Issue 3823002: Move windows version-related stuff out of base/win_util and into base/win/win... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/first_run.h" 5 #include "chrome/browser/first_run/first_run.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 10
11 #include <set> 11 #include <set>
12 #include <sstream> 12 #include <sstream>
13 13
14 #include "app/app_switches.h" 14 #include "app/app_switches.h"
15 #include "app/l10n_util.h" 15 #include "app/l10n_util.h"
16 #include "app/resource_bundle.h" 16 #include "app/resource_bundle.h"
17 #include "base/environment.h" 17 #include "base/environment.h"
18 #include "base/file_util.h" 18 #include "base/file_util.h"
19 #include "base/object_watcher.h" 19 #include "base/object_watcher.h"
20 #include "base/path_service.h" 20 #include "base/path_service.h"
21 #include "base/registry.h" 21 #include "base/registry.h"
22 #include "base/scoped_comptr_win.h" 22 #include "base/scoped_comptr_win.h"
23 #include "base/scoped_ptr.h" 23 #include "base/scoped_ptr.h"
24 #include "base/string_number_conversions.h" 24 #include "base/string_number_conversions.h"
25 #include "base/string_split.h" 25 #include "base/string_split.h"
26 #include "base/utf_string_conversions.h" 26 #include "base/utf_string_conversions.h"
27 #include "base/win_util.h" 27 #include "base/win/windows_version.h"
28 #include "chrome/browser/extensions/extensions_service.h" 28 #include "chrome/browser/extensions/extensions_service.h"
29 #include "chrome/browser/extensions/extension_updater.h" 29 #include "chrome/browser/extensions/extension_updater.h"
30 #include "chrome/browser/importer/importer.h" 30 #include "chrome/browser/importer/importer.h"
31 #include "chrome/browser/metrics/user_metrics.h" 31 #include "chrome/browser/metrics/user_metrics.h"
32 #include "chrome/browser/process_singleton.h" 32 #include "chrome/browser/process_singleton.h"
33 #include "chrome/browser/profile.h" 33 #include "chrome/browser/profile.h"
34 #include "chrome/browser/views/first_run_search_engine_view.h" 34 #include "chrome/browser/views/first_run_search_engine_view.h"
35 #include "chrome/common/chrome_switches.h" 35 #include "chrome/common/chrome_switches.h"
36 #include "chrome/common/notification_service.h" 36 #include "chrome/common/notification_service.h"
37 #include "chrome/common/pref_names.h" 37 #include "chrome/common/pref_names.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 *window = reinterpret_cast<HWND>(window_int); 432 *window = reinterpret_cast<HWND>(window_int);
433 return true; 433 return true;
434 } 434 }
435 435
436 } // namespace 436 } // namespace
437 437
438 // static 438 // static
439 void FirstRun::PlatformSetup() { 439 void FirstRun::PlatformSetup() {
440 FirstRun::CreateChromeDesktopShortcut(); 440 FirstRun::CreateChromeDesktopShortcut();
441 // Windows 7 has deprecated the quick launch bar. 441 // Windows 7 has deprecated the quick launch bar.
442 if (win_util::GetWinVersion() < win_util::WINVERSION_WIN7) 442 if (base::win::GetVersion() < base::win::VERSION_WIN7)
443 CreateChromeQuickLaunchShortcut(); 443 CreateChromeQuickLaunchShortcut();
444 } 444 }
445 445
446 // static 446 // static
447 bool FirstRun::IsOrganic() { 447 bool FirstRun::IsOrganic() {
448 std::wstring brand; 448 std::wstring brand;
449 GoogleUpdateSettings::GetBrand(&brand); 449 GoogleUpdateSettings::GetBrand(&brand);
450 return GoogleUpdateSettings::IsOrganic(brand); 450 return GoogleUpdateSettings::IsOrganic(brand);
451 } 451 }
452 452
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 852
853 Upgrade::TryResult Upgrade::ShowTryChromeDialog(size_t version) { 853 Upgrade::TryResult Upgrade::ShowTryChromeDialog(size_t version) {
854 if (version > 10000) { 854 if (version > 10000) {
855 // This is a test value. We want to make sure we exercise 855 // This is a test value. We want to make sure we exercise
856 // returning this early. See EarlyReturnTest test harness. 856 // returning this early. See EarlyReturnTest test harness.
857 return Upgrade::TD_NOT_NOW; 857 return Upgrade::TD_NOT_NOW;
858 } 858 }
859 TryChromeDialog td(version); 859 TryChromeDialog td(version);
860 return td.ShowModal(); 860 return td.ShowModal();
861 } 861 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698