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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2980773002: Revert of Deduplicate Monochrome locale .paks (Closed)
Patch Set: Created 3 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
« no previous file with comments | « chrome/browser/chrome_browser_main_android.cc ('k') | chrome/chrome_paks.gni » ('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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 2777 matching lines...) Expand 10 before | Expand all | Expand 10 after
2788 base::MemoryMappedFile::Region region; 2788 base::MemoryMappedFile::Region region;
2789 int fd = ui::GetMainAndroidPackFd(&region); 2789 int fd = ui::GetMainAndroidPackFd(&region);
2790 mappings->ShareWithRegion(kAndroidUIResourcesPakDescriptor, fd, region); 2790 mappings->ShareWithRegion(kAndroidUIResourcesPakDescriptor, fd, region);
2791 2791
2792 fd = ui::GetCommonResourcesPackFd(&region); 2792 fd = ui::GetCommonResourcesPackFd(&region);
2793 mappings->ShareWithRegion(kAndroidChrome100PercentPakDescriptor, fd, region); 2793 mappings->ShareWithRegion(kAndroidChrome100PercentPakDescriptor, fd, region);
2794 2794
2795 fd = ui::GetLocalePackFd(&region); 2795 fd = ui::GetLocalePackFd(&region);
2796 mappings->ShareWithRegion(kAndroidLocalePakDescriptor, fd, region); 2796 mappings->ShareWithRegion(kAndroidLocalePakDescriptor, fd, region);
2797 2797
2798 // Optional secondary locale .pak file.
2799 fd = ui::GetSecondaryLocalePackFd(&region);
2800 if (fd != -1) {
2801 mappings->ShareWithRegion(kAndroidSecondaryLocalePakDescriptor, fd, region);
2802 }
2803
2804 breakpad::CrashDumpObserver::GetInstance()->BrowserChildProcessStarted( 2798 breakpad::CrashDumpObserver::GetInstance()->BrowserChildProcessStarted(
2805 child_process_id, mappings); 2799 child_process_id, mappings);
2806 2800
2807 base::FilePath app_data_path; 2801 base::FilePath app_data_path;
2808 PathService::Get(base::DIR_ANDROID_APP_DATA, &app_data_path); 2802 PathService::Get(base::DIR_ANDROID_APP_DATA, &app_data_path);
2809 DCHECK(!app_data_path.empty()); 2803 DCHECK(!app_data_path.empty());
2810 #else 2804 #else
2811 int crash_signal_fd = GetCrashSignalFD(command_line); 2805 int crash_signal_fd = GetCrashSignalFD(command_line);
2812 if (crash_signal_fd >= 0) { 2806 if (crash_signal_fd >= 0) {
2813 mappings->Share(kCrashDumpSignal, crash_signal_fd); 2807 mappings->Share(kCrashDumpSignal, crash_signal_fd);
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
3476 // displayed URL when rewriting chrome://help to chrome://settings/help. 3470 // displayed URL when rewriting chrome://help to chrome://settings/help.
3477 return url->SchemeIs(content::kChromeUIScheme) && 3471 return url->SchemeIs(content::kChromeUIScheme) &&
3478 url->host() == chrome::kChromeUISettingsHost; 3472 url->host() == chrome::kChromeUISettingsHost;
3479 } 3473 }
3480 3474
3481 // static 3475 // static
3482 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3476 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3483 const storage::QuotaSettings* settings) { 3477 const storage::QuotaSettings* settings) {
3484 g_default_quota_settings = settings; 3478 g_default_quota_settings = settings;
3485 } 3479 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_android.cc ('k') | chrome/chrome_paks.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698