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

Side by Side Diff: extensions/common/file_util.cc

Issue 288273004: A bunch of remaining parts of extension content verification (Reland) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser test Created 6 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 | Annotate | Revision Log
« no previous file with comments | « extensions/common/file_util.h ('k') | extensions/extensions.gyp » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "extensions/common/file_util.h" 5 #include "extensions/common/file_util.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 } 430 }
431 431
432 // Add @@extension_id reserved message here, so it's available to 432 // Add @@extension_id reserved message here, so it's available to
433 // non-localized extensions too. 433 // non-localized extensions too.
434 return_value->insert( 434 return_value->insert(
435 std::make_pair(MessageBundle::kExtensionIdKey, extension_id)); 435 std::make_pair(MessageBundle::kExtensionIdKey, extension_id));
436 436
437 return return_value; 437 return return_value;
438 } 438 }
439 439
440 base::FilePath GetVerifiedContentsPath(const base::FilePath& extension_path) {
441 return extension_path.Append(kMetadataFolder)
442 .Append(kVerifiedContentsFilename);
443 }
444 base::FilePath GetComputedHashesPath(const base::FilePath& extension_path) {
445 return extension_path.Append(kMetadataFolder).Append(kComputedHashesFilename);
446 }
447
440 } // namespace file_util 448 } // namespace file_util
441 } // namespace extensions 449 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/file_util.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698