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

Side by Side Diff: chrome/browser/net/net_log_temp_file.cc

Issue 104493005: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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/net/gaia/gaia_oauth_fetcher.cc ('k') | chrome/browser/net/predictor.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "chrome/browser/net/net_log_temp_file.h" 5 #include "chrome/browser/net/net_log_temp_file.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/net/chrome_net_log.h" 9 #include "chrome/browser/net/chrome_net_log.h"
10 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h" 10 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h"
(...skipping 24 matching lines...) Expand all
35 break; 35 break;
36 case DO_STOP: 36 case DO_STOP:
37 StopNetLog(); 37 StopNetLog();
38 break; 38 break;
39 default: 39 default:
40 NOTREACHED(); 40 NOTREACHED();
41 break; 41 break;
42 } 42 }
43 } 43 }
44 44
45 DictionaryValue* NetLogTempFile::GetState() { 45 base::DictionaryValue* NetLogTempFile::GetState() {
46 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE_USER_BLOCKING)); 46 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE_USER_BLOCKING));
47 base::DictionaryValue* dict = new base::DictionaryValue; 47 base::DictionaryValue* dict = new base::DictionaryValue;
48 48
49 EnsureInit(); 49 EnsureInit();
50 50
51 #ifndef NDEBUG 51 #ifndef NDEBUG
52 dict->SetString("file", log_path_.LossyDisplayName()); 52 dict->SetString("file", log_path_.LossyDisplayName());
53 #endif // NDEBUG 53 #endif // NDEBUG
54 54
55 switch (state_) { 55 switch (state_) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 bool NetLogTempFile::GetNetExportLogDirectory(base::FilePath* path) { 148 bool NetLogTempFile::GetNetExportLogDirectory(base::FilePath* path) {
149 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE_USER_BLOCKING)); 149 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE_USER_BLOCKING));
150 return base::GetTempDir(path); 150 return base::GetTempDir(path);
151 } 151 }
152 152
153 bool NetLogTempFile::NetExportLogExists() { 153 bool NetLogTempFile::NetExportLogExists() {
154 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE_USER_BLOCKING)); 154 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE_USER_BLOCKING));
155 DCHECK(!log_path_.empty()); 155 DCHECK(!log_path_.empty());
156 return base::PathExists(log_path_); 156 return base::PathExists(log_path_);
157 } 157 }
OLDNEW
« no previous file with comments | « chrome/browser/net/gaia/gaia_oauth_fetcher.cc ('k') | chrome/browser/net/predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698