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

Side by Side Diff: chrome/common/extensions/manifest_handlers/ui_overrides_handler.cc

Issue 559523004: Cleanup: Remove unneeded extension_messages.h usage and ifdef out some extensions code usage when e… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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 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/common/extensions/manifest_handlers/ui_overrides_handler.h" 5 #include "chrome/common/extensions/manifest_handlers/ui_overrides_handler.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/grit/generated_resources.h" 11 #include "chrome/grit/generated_resources.h"
12 #include "extensions/common/error_utils.h" 12 #include "extensions/common/error_utils.h"
13 #include "extensions/common/extension_messages.h"
14 #include "extensions/common/feature_switch.h" 13 #include "extensions/common/feature_switch.h"
15 #include "extensions/common/manifest_constants.h" 14 #include "extensions/common/manifest_constants.h"
16 #include "extensions/common/permissions/manifest_permission.h" 15 #include "extensions/common/permissions/manifest_permission.h"
17 #include "extensions/common/permissions/permissions_data.h" 16 #include "extensions/common/permissions/permissions_data.h"
18 #include "extensions/common/permissions/permissions_info.h" 17 #include "extensions/common/permissions/permissions_info.h"
19 #include "ipc/ipc_message.h" 18 #include "ipc/ipc_message.h"
20 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
21 20
22 using extensions::api::manifest_types::ChromeUIOverrides; 21 using extensions::api::manifest_types::ChromeUIOverrides;
23 22
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 const UIOverrides* data = UIOverrides::Get(extension); 179 const UIOverrides* data = UIOverrides::Get(extension);
181 if (data) 180 if (data)
182 return data->manifest_permission->Clone(); 181 return data->manifest_permission->Clone();
183 return NULL; 182 return NULL;
184 } 183 }
185 const std::vector<std::string> UIOverridesHandler::Keys() const { 184 const std::vector<std::string> UIOverridesHandler::Keys() const {
186 return SingleKey(manifest_keys::kUIOverride); 185 return SingleKey(manifest_keys::kUIOverride);
187 } 186 }
188 187
189 } // namespace extensions 188 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698