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

Side by Side Diff: chrome/browser/chromeos/file_manager/file_tasks.cc

Issue 102103005: Move c/c/e/extension_set to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move ExtensionSet to extensions namespace 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
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/file_manager/file_tasks.h" 5 #include "chrome/browser/chromeos/file_manager/file_tasks.h"
6 6
7 #include "apps/launcher.h" 7 #include "apps/launcher.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 Profile* profile, 382 Profile* profile,
383 const PathAndMimeTypeSet& path_mime_set, 383 const PathAndMimeTypeSet& path_mime_set,
384 std::vector<FullTaskDescriptor>* result_list) { 384 std::vector<FullTaskDescriptor>* result_list) {
385 DCHECK(!path_mime_set.empty()); 385 DCHECK(!path_mime_set.empty());
386 DCHECK(result_list); 386 DCHECK(result_list);
387 387
388 ExtensionService* service = profile->GetExtensionService(); 388 ExtensionService* service = profile->GetExtensionService();
389 if (!service) 389 if (!service)
390 return; 390 return;
391 391
392 for (ExtensionSet::const_iterator iter = service->extensions()->begin(); 392 for (extensions::ExtensionSet::const_iterator iter =
393 service->extensions()->begin();
393 iter != service->extensions()->end(); 394 iter != service->extensions()->end();
394 ++iter) { 395 ++iter) {
395 const Extension* extension = iter->get(); 396 const Extension* extension = iter->get();
396 397
397 // We don't support using hosted apps to open files. 398 // We don't support using hosted apps to open files.
398 if (!extension->is_platform_app()) 399 if (!extension->is_platform_app())
399 continue; 400 continue;
400 401
401 if (profile->IsOffTheRecord() && 402 if (profile->IsOffTheRecord() &&
402 !extension_util::IsIncognitoEnabled(extension->id(), service)) 403 !extension_util::IsIncognitoEnabled(extension->id(), service))
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 if (file_browser_handlers::IsFallbackFileBrowserHandler( 538 if (file_browser_handlers::IsFallbackFileBrowserHandler(
538 task->task_descriptor())) { 539 task->task_descriptor())) {
539 task->set_is_default(true); 540 task->set_is_default(true);
540 return; 541 return;
541 } 542 }
542 } 543 }
543 } 544 }
544 545
545 } // namespace file_tasks 546 } // namespace file_tasks
546 } // namespace file_manager 547 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698