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

Side by Side Diff: chrome/browser/google/google_util.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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/file_select_helper.cc ('k') | chrome/browser/google/google_util_unittest.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 (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/google/google_util.h" 5 #include "chrome/browser/google/google_util.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/mac/keystone_glue.h" 25 #include "chrome/browser/mac/keystone_glue.h"
26 #elif defined(OS_CHROMEOS) 26 #elif defined(OS_CHROMEOS)
27 #include "chrome/browser/google/google_util_chromeos.h" 27 #include "chrome/browser/google/google_util_chromeos.h"
28 #endif 28 #endif
29 29
30 #if defined(GOOGLE_CHROME_BUILD) 30 #if defined(GOOGLE_CHROME_BUILD)
31 #include "chrome/browser/google/linkdoctor_internal/linkdoctor_internal.h" 31 #include "chrome/browser/google/linkdoctor_internal/linkdoctor_internal.h"
32 #endif 32 #endif
33 33
34 #ifndef LINKDOCTOR_SERVER_REQUEST_URL 34 #ifndef LINKDOCTOR_SERVER_REQUEST_URL
35 #define LINKDOCTOR_SERVER_REQUEST_URL "" 35 #define LINKDOCTOR_SERVER_REQUEST_URL std::string()
36 #endif 36 #endif
37 37
38 namespace { 38 namespace {
39 39
40 const char* brand_for_testing = NULL; 40 const char* brand_for_testing = NULL;
41 41
42 bool gUseMockLinkDoctorBaseURLForTesting = false; 42 bool gUseMockLinkDoctorBaseURLForTesting = false;
43 43
44 } // anonymous namespace 44 } // anonymous namespace
45 45
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 const char* const kBrands[] = { 291 const char* const kBrands[] = {
292 "CHIQ", "CHSG", "HLJY", "NTMO", "OOBA", "OOBB", "OOBC", "OOBD", "OOBE", 292 "CHIQ", "CHSG", "HLJY", "NTMO", "OOBA", "OOBB", "OOBC", "OOBD", "OOBE",
293 "OOBF", "OOBG", "OOBH", "OOBI", "OOBJ", "IDCM", 293 "OOBF", "OOBG", "OOBH", "OOBI", "OOBJ", "IDCM",
294 }; 294 };
295 const char* const* end = &kBrands[arraysize(kBrands)]; 295 const char* const* end = &kBrands[arraysize(kBrands)];
296 const char* const* found = std::find(&kBrands[0], end, brand); 296 const char* const* found = std::find(&kBrands[0], end, brand);
297 return found != end; 297 return found != end;
298 } 298 }
299 299
300 } // namespace google_util 300 } // namespace google_util
OLDNEW
« no previous file with comments | « chrome/browser/file_select_helper.cc ('k') | chrome/browser/google/google_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698