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

Side by Side Diff: chrome/common/extensions/feature.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 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
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/common/extensions/feature.h" 5 #include "chrome/common/extensions/feature.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/stringprintf.h" 11 #include "base/stringprintf.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 13
14 using chrome::VersionInfo; 14 using chrome::VersionInfo;
15 using extensions::Extension;
15 16
16 namespace { 17 namespace {
17 18
18 struct Mappings { 19 struct Mappings {
19 Mappings() { 20 Mappings() {
20 extension_types["extension"] = Extension::TYPE_EXTENSION; 21 extension_types["extension"] = Extension::TYPE_EXTENSION;
21 extension_types["theme"] = Extension::TYPE_THEME; 22 extension_types["theme"] = Extension::TYPE_THEME;
22 extension_types["packaged_app"] = Extension::TYPE_PACKAGED_APP; 23 extension_types["packaged_app"] = Extension::TYPE_PACKAGED_APP;
23 extension_types["hosted_app"] = Extension::TYPE_HOSTED_APP; 24 extension_types["hosted_app"] = Extension::TYPE_HOSTED_APP;
24 extension_types["platform_app"] = Extension::TYPE_PLATFORM_APP; 25 extension_types["platform_app"] = Extension::TYPE_PLATFORM_APP;
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 void Feature::SetChannelForTesting(VersionInfo::Channel channel) { 363 void Feature::SetChannelForTesting(VersionInfo::Channel channel) {
363 g_channel.Get().SetChannelForTesting(channel); 364 g_channel.Get().SetChannelForTesting(channel);
364 } 365 }
365 366
366 // static 367 // static
367 void Feature::ResetChannelForTesting() { 368 void Feature::ResetChannelForTesting() {
368 g_channel.Get().ResetChannelForTesting(); 369 g_channel.Get().ResetChannelForTesting();
369 } 370 }
370 371
371 } // namespace 372 } // namespace
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_unpacker_unittest.cc ('k') | chrome/common/extensions/feature_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698