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

Side by Side Diff: chrome/browser/extensions/webstore_installer.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 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
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/extensions/webstore_installer.h" 5 #include "chrome/browser/extensions/webstore_installer.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 28 matching lines...) Expand all
39 #include "net/base/escape.h" 39 #include "net/base/escape.h"
40 40
41 using content::BrowserThread; 41 using content::BrowserThread;
42 using content::DownloadId; 42 using content::DownloadId;
43 using content::DownloadItem; 43 using content::DownloadItem;
44 using content::NavigationController; 44 using content::NavigationController;
45 using content::DownloadUrlParameters; 45 using content::DownloadUrlParameters;
46 46
47 namespace { 47 namespace {
48 48
49 using extensions::Extension;
50
49 // Key used to attach the Approval to the DownloadItem. 51 // Key used to attach the Approval to the DownloadItem.
50 const char kApprovalKey[] = "extensions.webstore_installer"; 52 const char kApprovalKey[] = "extensions.webstore_installer";
51 53
52 const char kInvalidIdError[] = "Invalid id"; 54 const char kInvalidIdError[] = "Invalid id";
53 const char kNoBrowserError[] = "No browser found"; 55 const char kNoBrowserError[] = "No browser found";
54 const char kDownloadDirectoryError[] = "Could not create download directory"; 56 const char kDownloadDirectoryError[] = "Could not create download directory";
55 const char kDownloadCanceledError[] = "Download canceled"; 57 const char kDownloadCanceledError[] = "Download canceled";
56 const char kInstallCanceledError[] = "Install canceled"; 58 const char kInstallCanceledError[] = "Install canceled";
57 const char kDownloadInterruptedError[] = "Download interrupted"; 59 const char kDownloadInterruptedError[] = "Download interrupted";
58 const char kInvalidDownloadError[] = "Download was not a CRX"; 60 const char kInvalidDownloadError[] = "Download was not a CRX";
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 334 }
333 335
334 void WebstoreInstaller::ReportSuccess() { 336 void WebstoreInstaller::ReportSuccess() {
335 if (delegate_) { 337 if (delegate_) {
336 delegate_->OnExtensionInstallSuccess(id_); 338 delegate_->OnExtensionInstallSuccess(id_);
337 delegate_ = NULL; 339 delegate_ = NULL;
338 } 340 }
339 341
340 Release(); // Balanced in Start(). 342 Release(); // Balanced in Start().
341 } 343 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_inline_installer.cc ('k') | chrome/browser/extensions/window_open_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698