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

Side by Side Diff: chrome/browser/mac/obsolete_system.cc

Issue 469993006: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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/mac/keystone_glue.mm ('k') | chrome/browser/media/desktop_media_list_ash.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/mac/obsolete_system.h" 5 #include "chrome/browser/mac/obsolete_system.h"
6 6
7 #include <sys/sysctl.h> 7 #include <sys/sysctl.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include "grit/chromium_strings.h" 10 #include "chrome/grit/chromium_strings.h"
11 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
12 12
13 #if !defined(ARCH_CPU_64_BITS) 13 #if !defined(ARCH_CPU_64_BITS)
14 14
15 // static 15 // static
16 bool ObsoleteSystemMac::Has32BitOnlyCPU() { 16 bool ObsoleteSystemMac::Has32BitOnlyCPU() {
17 int value; 17 int value;
18 size_t valueSize = sizeof(value); 18 size_t valueSize = sizeof(value);
19 if (sysctlbyname("hw.cpu64bit_capable", &value, &valueSize, NULL, 0) != 0) { 19 if (sysctlbyname("hw.cpu64bit_capable", &value, &valueSize, NULL, 0) != 0) {
20 return true; 20 return true;
21 } 21 }
22 return value == 0; 22 return value == 0;
23 } 23 }
24 24
25 // static 25 // static
26 base::string16 ObsoleteSystemMac::LocalizedObsoleteSystemString() { 26 base::string16 ObsoleteSystemMac::LocalizedObsoleteSystemString() {
27 return l10n_util::GetStringUTF16( 27 return l10n_util::GetStringUTF16(
28 Is32BitEndOfTheLine() ? IDS_MAC_32_BIT_OBSOLETE_NOW : 28 Is32BitEndOfTheLine() ? IDS_MAC_32_BIT_OBSOLETE_NOW :
29 IDS_MAC_32_BIT_OBSOLETE_SOON); 29 IDS_MAC_32_BIT_OBSOLETE_SOON);
30 } 30 }
31 31
32 #endif 32 #endif
OLDNEW
« no previous file with comments | « chrome/browser/mac/keystone_glue.mm ('k') | chrome/browser/media/desktop_media_list_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698