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

Side by Side Diff: chrome/browser/extensions/sandboxed_extension_unpacker.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/sandboxed_extension_unpacker.h" 5 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 16 matching lines...) Expand all
27 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
28 #include "content/public/browser/utility_process_host.h" 28 #include "content/public/browser/utility_process_host.h"
29 #include "crypto/signature_verifier.h" 29 #include "crypto/signature_verifier.h"
30 #include "grit/generated_resources.h" 30 #include "grit/generated_resources.h"
31 #include "third_party/skia/include/core/SkBitmap.h" 31 #include "third_party/skia/include/core/SkBitmap.h"
32 #include "ui/base/l10n/l10n_util.h" 32 #include "ui/base/l10n/l10n_util.h"
33 #include "ui/gfx/codec/png_codec.h" 33 #include "ui/gfx/codec/png_codec.h"
34 34
35 using content::BrowserThread; 35 using content::BrowserThread;
36 using content::UtilityProcessHost; 36 using content::UtilityProcessHost;
37 using extensions::Extension;
37 38
38 // The following macro makes histograms that record the length of paths 39 // The following macro makes histograms that record the length of paths
39 // in this file much easier to read. 40 // in this file much easier to read.
40 // Windows has a short max path length. If the path length to a 41 // Windows has a short max path length. If the path length to a
41 // file being unpacked from a CRX exceeds the max length, we might 42 // file being unpacked from a CRX exceeds the max length, we might
42 // fail to install. To see if this is happening, see how long the 43 // fail to install. To see if this is happening, see how long the
43 // path to the temp unpack directory is. See crbug.com/69693 . 44 // path to the temp unpack directory is. See crbug.com/69693 .
44 #define PATH_LENGTH_HISTOGRAM(name, path) \ 45 #define PATH_LENGTH_HISTOGRAM(name, path) \
45 UMA_HISTOGRAM_CUSTOM_COUNTS(name, path.value().length(), 0, 500, 100) 46 UMA_HISTOGRAM_CUSTOM_COUNTS(name, path.value().length(), 0, 500, 100)
46 47
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 ERROR_SAVING_CATALOG, 780 ERROR_SAVING_CATALOG,
780 l10n_util::GetStringFUTF16( 781 l10n_util::GetStringFUTF16(
781 IDS_EXTENSION_PACKAGE_INSTALL_ERROR, 782 IDS_EXTENSION_PACKAGE_INSTALL_ERROR,
782 ASCIIToUTF16("ERROR_SAVING_CATALOG"))); 783 ASCIIToUTF16("ERROR_SAVING_CATALOG")));
783 return false; 784 return false;
784 } 785 }
785 } 786 }
786 787
787 return true; 788 return true;
788 } 789 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698