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

Side by Side Diff: chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.cc

Issue 8608001: CrOs: Remove 30 static initializers and 30 exit time destructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/webui/chromeos/imageburner/imageburner_utils.h" 5 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/task.h" 10 #include "base/task.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/common/chrome_paths.h" 12 #include "chrome/common/chrome_paths.h"
13 #include "content/browser/download/download_types.h" 13 #include "content/browser/download/download_types.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 15
16 using content::BrowserThread; 16 using content::BrowserThread;
17 17
18 namespace imageburner { 18 namespace imageburner {
19 19
20 static const char kConfigFileUrl[] = 20 const char kName[] = "name";
21 const char kHwid[] = "hwid";
22 const char kFileName[] = "file";
23 const char kUrl[] = "url";
24
25 const char kConfigFileUrl[] =
21 "https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf"; 26 "https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf";
22 static const char kTempImageFolderName[] = "chromeos_image"; 27 const char kTempImageFolderName[] = "chromeos_image";
23 static const char kConfigFileName[] = "recovery.conf"; 28 const char kConfigFileName[] = "recovery.conf";
24 29
25 //////////////////////////////////////////////////////////////////////////////// 30 ////////////////////////////////////////////////////////////////////////////////
26 // 31 //
27 // ConfigFile 32 // ConfigFile
28 // 33 //
29 //////////////////////////////////////////////////////////////////////////////// 34 ////////////////////////////////////////////////////////////////////////////////
30 ConfigFile::ConfigFile() { 35 ConfigFile::ConfigFile() {
31 } 36 }
32 37
33 ConfigFile::ConfigFile(const std::string& file_content) { 38 ConfigFile::ConfigFile(const std::string& file_content) {
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 current_listener != listener_range.second; 462 current_listener != listener_range.second;
458 ++current_listener) { 463 ++current_listener) {
459 if (current_listener->second) 464 if (current_listener->second)
460 current_listener->second->OnBurnDownloadStarted(success); 465 current_listener->second->OnBurnDownloadStarted(success);
461 } 466 }
462 listeners_.erase(listener_range.first, listener_range.second); 467 listeners_.erase(listener_range.first, listener_range.second);
463 } 468 }
464 469
465 } // namespace imageburner. 470 } // namespace imageburner.
466 471
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698