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

Side by Side Diff: cloud_print/service/win/service_utils.cc

Issue 16511009: Use a direct include of strings headers in cloud_print/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « cloud_print/service/win/service_utils.h ('k') | cloud_print/service/win/setup_listener.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "cloud_print/service/win/service_utils.h" 5 #include "cloud_print/service/win/service_utils.h"
6 #include "google_apis/gaia/gaia_switches.h" 6 #include "google_apis/gaia/gaia_switches.h"
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <security.h> // NOLINT 9 #include <security.h> // NOLINT
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 14
15 string16 GetLocalComputerName() { 15 string16 GetLocalComputerName() {
16 DWORD size = 0; 16 DWORD size = 0;
17 string16 result; 17 string16 result;
18 ::GetComputerName(NULL, &size); 18 ::GetComputerName(NULL, &size);
19 result.resize(size); 19 result.resize(size);
20 if (result.empty()) 20 if (result.empty())
21 return result; 21 return result;
22 if (!::GetComputerName(&result[0], &size)) 22 if (!::GetComputerName(&result[0], &size))
(...skipping 30 matching lines...) Expand all
53 switches::kEnableLogging, 53 switches::kEnableLogging,
54 switches::kIgnoreUrlFetcherCertRequests, 54 switches::kIgnoreUrlFetcherCertRequests,
55 switches::kLsoUrl, 55 switches::kLsoUrl,
56 switches::kV, 56 switches::kV,
57 }; 57 };
58 destination->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), 58 destination->CopySwitchesFrom(*CommandLine::ForCurrentProcess(),
59 kSwitchesToCopy, 59 kSwitchesToCopy,
60 arraysize(kSwitchesToCopy)); 60 arraysize(kSwitchesToCopy));
61 } 61 }
62 62
OLDNEW
« no previous file with comments | « cloud_print/service/win/service_utils.h ('k') | cloud_print/service/win/setup_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698