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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. 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/extensions/pack_extension_job.h" 5 #include "chrome/browser/extensions/pack_extension_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/extensions/extension_creator.h" 11 #include "chrome/browser/extensions/extension_creator.h"
12 #include "chrome/common/chrome_constants.h" 12 #include "chrome/common/chrome_constants.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 using content::BrowserThread;
17
16 PackExtensionJob::PackExtensionJob(Client* client, 18 PackExtensionJob::PackExtensionJob(Client* client,
17 const FilePath& root_directory, 19 const FilePath& root_directory,
18 const FilePath& key_file) 20 const FilePath& key_file)
19 : client_(client), key_file_(key_file), asynchronous_(true) { 21 : client_(client), key_file_(key_file), asynchronous_(true) {
20 root_directory_ = root_directory.StripTrailingSeparators(); 22 root_directory_ = root_directory.StripTrailingSeparators();
21 CHECK(BrowserThread::GetCurrentThreadIdentifier(&client_thread_id_)); 23 CHECK(BrowserThread::GetCurrentThreadIdentifier(&client_thread_id_));
22 } 24 }
23 25
24 void PackExtensionJob::Start() { 26 void PackExtensionJob::Start() {
25 if (asynchronous_) { 27 if (asynchronous_) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 return l10n_util::GetStringFUTF16( 90 return l10n_util::GetStringFUTF16(
89 IDS_EXTENSION_PACK_DIALOG_SUCCESS_BODY_UPDATE, 91 IDS_EXTENSION_PACK_DIALOG_SUCCESS_BODY_UPDATE,
90 crx_file_string); 92 crx_file_string);
91 } else { 93 } else {
92 return l10n_util::GetStringFUTF16( 94 return l10n_util::GetStringFUTF16(
93 IDS_EXTENSION_PACK_DIALOG_SUCCESS_BODY_NEW, 95 IDS_EXTENSION_PACK_DIALOG_SUCCESS_BODY_NEW,
94 crx_file_string, 96 crx_file_string,
95 key_file_string); 97 key_file_string);
96 } 98 }
97 } 99 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/pack_extension_job.h ('k') | chrome/browser/extensions/pending_extension_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698