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

Side by Side Diff: chrome/browser/chromeos/extensions/wallpaper_manager_util.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 (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/chromeos/extensions/wallpaper_manager_util.h" 5 #include "chrome/browser/chromeos/extensions/wallpaper_manager_util.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_system.h" 10 #include "chrome/browser/extensions/extension_system.h"
(...skipping 14 matching lines...) Expand all
25 ExtensionService* service = 25 ExtensionService* service =
26 extensions::ExtensionSystem::Get(profile)->extension_service(); 26 extensions::ExtensionSystem::Get(profile)->extension_service();
27 if (!service) 27 if (!service)
28 return; 28 return;
29 29
30 const extensions::Extension* extension = 30 const extensions::Extension* extension =
31 service->GetExtensionById(extension_misc::kWallpaperManagerId, false); 31 service->GetExtensionById(extension_misc::kWallpaperManagerId, false);
32 if (!extension) 32 if (!extension)
33 return; 33 return;
34 34
35 OpenApplication(AppLaunchParams(profile, extension, extensions::LAUNCH_WINDOW, 35 OpenApplication(AppLaunchParams(profile, extension,
36 extensions::LAUNCH_CONTAINER_WINDOW,
36 NEW_WINDOW)); 37 NEW_WINDOW));
37 } 38 }
38 39
39 } // namespace wallpaper_manager_util 40 } // namespace wallpaper_manager_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698