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

Side by Side Diff: chrome/browser/chromeos/launcher_search_provider/launcher_search_provider_service.cc

Issue 1208963003: Move GN obj files to target-specific dirs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \ 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/launcher_search_provider/service.h" 5 #include "chrome/browser/chromeos/launcher_search_provider/launcher_search_provi der_service.h"
6 6
7 #include "base/memory/scoped_vector.h" 7 #include "base/memory/scoped_vector.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/chromeos/launcher_search_provider/service_factory.h" 9 #include "chrome/browser/chromeos/launcher_search_provider/launcher_search_provi der_service_factory.h"
10 #include "chrome/browser/ui/app_list/search/launcher_search/launcher_search_prov ider.h" 10 #include "chrome/browser/ui/app_list/search/launcher_search/launcher_search_prov ider.h"
11 #include "chrome/browser/ui/app_list/search/launcher_search/launcher_search_resu lt.h" 11 #include "chrome/browser/ui/app_list/search/launcher_search/launcher_search_resu lt.h"
12 #include "extensions/browser/extension_registry.h" 12 #include "extensions/browser/extension_registry.h"
13 #include "extensions/common/extension_set.h" 13 #include "extensions/common/extension_set.h"
14 #include "extensions/common/permissions/permissions_data.h" 14 #include "extensions/common/permissions/permissions_data.h"
15 15
16 namespace api_launcher_search_provider = 16 namespace api_launcher_search_provider =
17 extensions::api::launcher_search_provider; 17 extensions::api::launcher_search_provider;
18 using extensions::ExtensionId; 18 using extensions::ExtensionId;
19 using extensions::ExtensionSet; 19 using extensions::ExtensionSet;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 extension->permissions_data(); 167 extension->permissions_data();
168 const bool has_permission = permission_data->HasAPIPermission( 168 const bool has_permission = permission_data->HasAPIPermission(
169 extensions::APIPermission::kLauncherSearchProvider); 169 extensions::APIPermission::kLauncherSearchProvider);
170 if (has_permission) 170 if (has_permission)
171 cached_listener_extension_ids_->insert(extension->id()); 171 cached_listener_extension_ids_->insert(extension->id());
172 } 172 }
173 } 173 }
174 174
175 } // namespace launcher_search_provider 175 } // namespace launcher_search_provider
176 } // namespace chromeos 176 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698