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

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

Issue 2578843002: Implement Win 10 onboarding content logic (Closed)
Patch Set: Created 4 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
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/startup_browser_creator.h" 5 #include "chrome/browser/ui/startup/startup_browser_creator.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> // For max(). 9 #include <algorithm> // For max().
10 #include <limits> 10 #include <limits>
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 registry->RegisterBooleanPref(prefs::kSuppressUnsupportedOSWarning, false); 482 registry->RegisterBooleanPref(prefs::kSuppressUnsupportedOSWarning, false);
483 registry->RegisterBooleanPref(prefs::kWasRestarted, false); 483 registry->RegisterBooleanPref(prefs::kWasRestarted, false);
484 } 484 }
485 485
486 // static 486 // static
487 void StartupBrowserCreator::RegisterProfilePrefs(PrefRegistrySimple* registry) { 487 void StartupBrowserCreator::RegisterProfilePrefs(PrefRegistrySimple* registry) {
488 // Default to true so that existing users are not shown the Welcome page. 488 // Default to true so that existing users are not shown the Welcome page.
489 // ProfileManager handles setting this to false for new profiles upon 489 // ProfileManager handles setting this to false for new profiles upon
490 // creation. 490 // creation.
491 registry->RegisterBooleanPref(prefs::kHasSeenWelcomePage, true); 491 registry->RegisterBooleanPref(prefs::kHasSeenWelcomePage, true);
492
493 // All users should see this promo once.
494 registry->RegisterBooleanPref(prefs::kHasSeenWin10PromoPage, false);
tmartino 2016/12/15 16:41:28 Per talking with Eli and Rachel, let's make this a
Patrick Monette 2016/12/15 18:28:09 Done.
492 } 495 }
493 496
494 // static 497 // static
495 std::vector<GURL> StartupBrowserCreator::GetURLsFromCommandLine( 498 std::vector<GURL> StartupBrowserCreator::GetURLsFromCommandLine(
496 const base::CommandLine& command_line, 499 const base::CommandLine& command_line,
497 const base::FilePath& cur_dir, 500 const base::FilePath& cur_dir,
498 Profile* profile) { 501 Profile* profile) {
499 DCHECK(profile); 502 DCHECK(profile);
500 503
501 std::vector<GURL> urls; 504 std::vector<GURL> urls;
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 if (!entry->IsSigninRequired()) { 991 if (!entry->IsSigninRequired()) {
989 Profile* profile = profile_manager->GetProfile(entry->GetPath()); 992 Profile* profile = profile_manager->GetProfile(entry->GetPath());
990 if (profile) 993 if (profile)
991 return profile; 994 return profile;
992 } 995 }
993 } 996 }
994 997
995 return nullptr; 998 return nullptr;
996 } 999 }
997 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 1000 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698