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

Side by Side Diff: extensions/browser/api/management/management_api.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 "extensions/browser/api/management/management_api.h" 5 #include "extensions/browser/api/management/management_api.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 30 matching lines...) Expand all
41 #include "extensions/common/permissions/permissions_data.h" 41 #include "extensions/common/permissions/permissions_data.h"
42 #include "extensions/common/url_pattern.h" 42 #include "extensions/common/url_pattern.h"
43 43
44 using base::IntToString; 44 using base::IntToString;
45 using content::BrowserThread; 45 using content::BrowserThread;
46 46
47 namespace keys = extension_management_api_constants; 47 namespace keys = extension_management_api_constants;
48 48
49 namespace extensions { 49 namespace extensions {
50 50
51 namespace management = core_api::management; 51 namespace management = api::management;
52 52
53 namespace { 53 namespace {
54 54
55 typedef std::vector<linked_ptr<management::ExtensionInfo>> ExtensionInfoList; 55 typedef std::vector<linked_ptr<management::ExtensionInfo>> ExtensionInfoList;
56 typedef std::vector<linked_ptr<management::IconInfo>> IconInfoList; 56 typedef std::vector<linked_ptr<management::IconInfo>> IconInfoList;
57 57
58 enum AutoConfirmForTest { DO_NOT_SKIP = 0, PROCEED, ABORT }; 58 enum AutoConfirmForTest { DO_NOT_SKIP = 0, PROCEED, ABORT };
59 59
60 AutoConfirmForTest auto_confirm_for_test = DO_NOT_SKIP; 60 AutoConfirmForTest auto_confirm_for_test = DO_NOT_SKIP;
61 61
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 ManagementAPI::GetFactoryInstance() { 905 ManagementAPI::GetFactoryInstance() {
906 return g_factory.Pointer(); 906 return g_factory.Pointer();
907 } 907 }
908 908
909 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) { 909 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) {
910 management_event_router_.reset(new ManagementEventRouter(browser_context_)); 910 management_event_router_.reset(new ManagementEventRouter(browser_context_));
911 EventRouter::Get(browser_context_)->UnregisterObserver(this); 911 EventRouter::Get(browser_context_)->UnregisterObserver(this);
912 } 912 }
913 913
914 } // namespace extensions 914 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/idle/idle_manager.cc ('k') | extensions/browser/api/networking_config/networking_config_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698