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

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

Issue 187983003: Switch Quickoffice to new internal repo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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 | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/quick_office/OWNERS » ('j') | 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/component_loader.h" 5 #include "chrome/browser/extensions/component_loader.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 #endif // defined(GOOGLE_CHROME_BUILD) 491 #endif // defined(GOOGLE_CHROME_BUILD)
492 if (install_feedback) 492 if (install_feedback)
493 Add(IDR_FEEDBACK_MANIFEST, base::FilePath(FILE_PATH_LITERAL("feedback"))); 493 Add(IDR_FEEDBACK_MANIFEST, base::FilePath(FILE_PATH_LITERAL("feedback")));
494 494
495 #if defined(OS_CHROMEOS) 495 #if defined(OS_CHROMEOS)
496 if (!skip_session_components) { 496 if (!skip_session_components) {
497 #if defined(GOOGLE_CHROME_BUILD) 497 #if defined(GOOGLE_CHROME_BUILD)
498 if (!command_line->HasSwitch( 498 if (!command_line->HasSwitch(
499 chromeos::switches::kDisableQuickofficeComponentApp)) { 499 chromeos::switches::kDisableQuickofficeComponentApp)) {
500 std::string id = Add(IDR_QUICKOFFICE_MANIFEST, base::FilePath( 500 std::string id = Add(IDR_QUICKOFFICE_MANIFEST, base::FilePath(
501 FILE_PATH_LITERAL("/usr/share/chromeos-assets/quick_office"))); 501 FILE_PATH_LITERAL("/usr/share/chromeos-assets/quickoffice")));
502 EnableFileSystemInGuestMode(id); 502 EnableFileSystemInGuestMode(id);
503 } 503 }
504 #endif // defined(GOOGLE_CHROME_BUILD) 504 #endif // defined(GOOGLE_CHROME_BUILD)
505 505
506 base::FilePath echo_extension_path(FILE_PATH_LITERAL( 506 base::FilePath echo_extension_path(FILE_PATH_LITERAL(
507 "/usr/share/chromeos-assets/echo")); 507 "/usr/share/chromeos-assets/echo"));
508 if (command_line->HasSwitch(chromeos::switches::kEchoExtensionPath)) { 508 if (command_line->HasSwitch(chromeos::switches::kEchoExtensionPath)) {
509 echo_extension_path = command_line->GetSwitchValuePath( 509 echo_extension_path = command_line->GetSwitchValuePath(
510 chromeos::switches::kEchoExtensionPath); 510 chromeos::switches::kEchoExtensionPath);
511 } 511 }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); 613 off_the_record_context, Extension::GetBaseURLFromExtensionId(id));
614 fileapi::FileSystemContext* file_system_context = 614 fileapi::FileSystemContext* file_system_context =
615 content::BrowserContext::GetStoragePartitionForSite( 615 content::BrowserContext::GetStoragePartitionForSite(
616 off_the_record_context, site)->GetFileSystemContext(); 616 off_the_record_context, site)->GetFileSystemContext();
617 file_system_context->EnableTemporaryFileSystemInIncognito(); 617 file_system_context->EnableTemporaryFileSystemInIncognito();
618 } 618 }
619 #endif 619 #endif
620 } 620 }
621 621
622 } // namespace extensions 622 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/quick_office/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698