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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_util.cc

Issue 10128002: Retrieve Windows performance assessment information from results files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: libxml_utils in third_party/libxml instead of base. Created 8 years, 7 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
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/chromeos/gdata/gdata_util.h" 5 #include "chrome/browser/chromeos/gdata/gdata_util.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/file_util.h" 15 #include "base/file_util.h"
16 #include "base/json/json_reader.h" 16 #include "base/json/json_reader.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/stringprintf.h" 18 #include "base/stringprintf.h"
19 #include "base/string_util.h" 19 #include "base/string_util.h"
20 #include "base/threading/sequenced_worker_pool.h" 20 #include "base/threading/sequenced_worker_pool.h"
21 #include "chrome/common/chrome_version_info.h" 21 #include "chrome/common/chrome_version_info.h"
22 #include "chrome/common/libxml_utils.h"
23 #include "chrome/common/pref_names.h" 22 #include "chrome/common/pref_names.h"
24 #include "chrome/common/url_constants.h" 23 #include "chrome/common/url_constants.h"
25 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" 24 #include "chrome/browser/chromeos/gdata/gdata_file_system.h"
26 #include "chrome/browser/chromeos/gdata/gdata_system_service.h" 25 #include "chrome/browser/chromeos/gdata/gdata_system_service.h"
27 #include "chrome/browser/prefs/pref_service.h" 26 #include "chrome/browser/prefs/pref_service.h"
28 #include "chrome/browser/profiles/profile.h" 27 #include "chrome/browser/profiles/profile.h"
29 #include "chrome/browser/ui/browser.h" 28 #include "chrome/browser/ui/browser.h"
30 #include "chrome/browser/ui/browser_list.h" 29 #include "chrome/browser/ui/browser_list.h"
31 #include "content/public/browser/browser_thread.h" 30 #include "content/public/browser/browser_thread.h"
32 #include "content/public/browser/child_process_security_policy.h" 31 #include "content/public/browser/child_process_security_policy.h"
32 #include "libxml/libxml_utils.h"
33 #include "net/base/escape.h" 33 #include "net/base/escape.h"
34 34
35 namespace gdata { 35 namespace gdata {
36 namespace util { 36 namespace util {
37 37
38 namespace { 38 namespace {
39 39
40 const char kGDataSpecialRootPath[] = "/special"; 40 const char kGDataSpecialRootPath[] = "/special";
41 41
42 const char kGDataMountPointPath[] = "/special/gdata"; 42 const char kGDataMountPointPath[] = "/special/gdata";
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // Assign the extracted extensions to md5 and extra_extension. 318 // Assign the extracted extensions to md5 and extra_extension.
319 int extension_count = extensions.size(); 319 int extension_count = extensions.size();
320 *md5 = (extension_count > 0) ? extensions[extension_count - 1] : 320 *md5 = (extension_count > 0) ? extensions[extension_count - 1] :
321 std::string(); 321 std::string();
322 *extra_extension = (extension_count > 1) ? extensions[extension_count - 2] : 322 *extra_extension = (extension_count > 1) ? extensions[extension_count - 2] :
323 std::string(); 323 std::string();
324 } 324 }
325 325
326 } // namespace util 326 } // namespace util
327 } // namespace gdata 327 } // namespace gdata
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698