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

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

Issue 106713002: Move LaunchContainer enum to extension_constants.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/chromeos/first_run/first_run_controller.h" 5 #include "chrome/browser/chromeos/first_run/first_run_controller.h"
6 6
7 #include "chrome/browser/chromeos/login/user_manager.h" 7 #include "chrome/browser/chromeos/login/user_manager.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_system.h" 9 #include "chrome/browser/extensions/extension_system.h"
10 #include "chrome/browser/ui/extensions/application_launch.h" 10 #include "chrome/browser/ui/extensions/application_launch.h"
(...skipping 11 matching lines...) Expand all
22 extensions::ExtensionSystem::Get(profile)->extension_service(); 22 extensions::ExtensionSystem::Get(profile)->extension_service();
23 if (!service) 23 if (!service)
24 return; 24 return;
25 25
26 const extensions::Extension* extension = 26 const extensions::Extension* extension =
27 service->GetExtensionById(extension_misc::kFirstRunDialogId, false); 27 service->GetExtensionById(extension_misc::kFirstRunDialogId, false);
28 if (!extension) 28 if (!extension)
29 return; 29 return;
30 30
31 OpenApplication(AppLaunchParams( 31 OpenApplication(AppLaunchParams(
32 profile, extension, extensions::LAUNCH_WINDOW, NEW_WINDOW)); 32 profile, extension, extensions::LAUNCH_CONTAINER_WINDOW, NEW_WINDOW));
33 } 33 }
34 34
35 void LaunchFirstRunTutorial() { 35 void LaunchFirstRunTutorial() {
36 FirstRunController::Start(); 36 FirstRunController::Start();
37 } 37 }
38 38
39 } // namespace chromeos 39 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698