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

Side by Side Diff: chrome/browser/extensions/external_extension_provider_impl.cc

Issue 10269031: Mark default apps on ChromeOS installed from DIR_EXTERNAL_EXTENSIONS "from webstore" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/extensions/external_extension_provider_impl.h" 5 #include "chrome/browser/extensions/external_extension_provider_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 provider_list->push_back( 309 provider_list->push_back(
310 linked_ptr<ExternalExtensionProviderInterface>( 310 linked_ptr<ExternalExtensionProviderInterface>(
311 new ExternalExtensionProviderImpl( 311 new ExternalExtensionProviderImpl(
312 service, 312 service,
313 new ExternalPrefExtensionLoader( 313 new ExternalPrefExtensionLoader(
314 chrome::DIR_EXTERNAL_EXTENSIONS, 314 chrome::DIR_EXTERNAL_EXTENSIONS,
315 check_admin_permissions_on_mac), 315 check_admin_permissions_on_mac),
316 Extension::EXTERNAL_PREF, 316 Extension::EXTERNAL_PREF,
317 Extension::EXTERNAL_PREF_DOWNLOAD, 317 Extension::EXTERNAL_PREF_DOWNLOAD,
318 #if defined(OS_CHROMEOS)
319 Extension::FROM_WEBSTORE)));
320 #else
318 Extension::NO_FLAGS))); 321 Extension::NO_FLAGS)));
322 #endif
319 323
320 #if defined(OS_CHROMEOS) 324 #if defined(OS_CHROMEOS) || defined (OS_MACOSX)
321 // Define a per-user source of external default extensions, which serves 325 // Define a per-user source of external extensions.
322 // as a source for OEM customization. Mark these default extensions as 326 // On Chrome OS, this serves as a source for OEM customization.
323 // being from the webstore so they can load Native Client modules.
324 provider_list->push_back( 327 provider_list->push_back(
325 linked_ptr<ExternalExtensionProviderInterface>( 328 linked_ptr<ExternalExtensionProviderInterface>(
326 new ExternalExtensionProviderImpl( 329 new ExternalExtensionProviderImpl(
327 service,
328 new ExternalPrefExtensionLoader(
329 chrome::DIR_USER_EXTERNAL_EXTENSIONS,
330 ExternalPrefExtensionLoader::NONE),
331 Extension::EXTERNAL_PREF,
332 Extension::EXTERNAL_PREF_DOWNLOAD,
333 Extension::FROM_WEBSTORE)));
334 #endif
335 #if defined (OS_MACOSX)
336 // Define a per-user source of external extensions.
337 provider_list->push_back(
338 linked_ptr<ExternalExtensionProviderInterface>(
339 new ExternalExtensionProviderImpl(
340 service, 330 service,
341 new ExternalPrefExtensionLoader( 331 new ExternalPrefExtensionLoader(
342 chrome::DIR_USER_EXTERNAL_EXTENSIONS, 332 chrome::DIR_USER_EXTERNAL_EXTENSIONS,
343 ExternalPrefExtensionLoader::NONE), 333 ExternalPrefExtensionLoader::NONE),
344 Extension::EXTERNAL_PREF, 334 Extension::EXTERNAL_PREF,
345 Extension::EXTERNAL_PREF_DOWNLOAD, 335 Extension::EXTERNAL_PREF_DOWNLOAD,
346 Extension::NO_FLAGS))); 336 Extension::NO_FLAGS)));
347 #endif 337 #endif
348 #if defined(OS_WIN) 338 #if defined(OS_WIN)
349 provider_list->push_back( 339 provider_list->push_back(
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 linked_ptr<ExternalExtensionProviderInterface>( 379 linked_ptr<ExternalExtensionProviderInterface>(
390 new ExternalExtensionProviderImpl( 380 new ExternalExtensionProviderImpl(
391 service, 381 service,
392 connector->GetAppPackUpdater()->CreateExternalExtensionLoader(), 382 connector->GetAppPackUpdater()->CreateExternalExtensionLoader(),
393 Extension::EXTERNAL_PREF, 383 Extension::EXTERNAL_PREF,
394 Extension::INVALID, 384 Extension::INVALID,
395 Extension::NO_FLAGS))); 385 Extension::NO_FLAGS)));
396 } 386 }
397 #endif 387 #endif
398 } 388 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698